Пример #1
0
 public async Task <IActionResult> Get(Guid employeeId)
 {
     try
     {
         return(Ok(await _context.SelectEmployee(employeeId)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
Пример #2
0
        public async Task <Operation <Paycheck> > GeneratePaycheck(Guid employeeId, DateTime referenceMonth)
        {
            var employee = await _employeeContext.SelectEmployee(employeeId);

            return(await _paycheckService.CreatePaycheck(employee, referenceMonth));
        }