26 lines
623 B
C#
26 lines
623 B
C#
// using System;
|
|
// using System.Collections.Generic;
|
|
// using System.Linq;
|
|
// using System.Threading.Tasks;
|
|
// using Domain;
|
|
|
|
// namespace Auth.Core.Services.HR.Users;
|
|
|
|
// public class HolidayService
|
|
// {
|
|
// private readonly Context context;
|
|
|
|
// public HolidayService(Context context)
|
|
// {
|
|
// this.context = context;
|
|
// }
|
|
|
|
// public async Task AddHolidaysToUser(string userId, int holidays)
|
|
// {
|
|
// var user = await context.AppUsers.FindAsync(userId);
|
|
// user.Holidays += holidays;
|
|
// context.Update(user);
|
|
// await context.SaveChangesAsync();
|
|
// }
|
|
// }
|