public IActionResult PutTypeOfEmployment(int id, [FromBody] TypeOfEmployment data)
 {
     try
     {
         var res = _repository.UpdateTypeOfEmployment(id, data);
         if (!res)
         {
             return(Conflict(409));
         }
         return(Ok(res));
     }
     catch (Exception error)
     {
         return(BadRequest(error));
     }
 }
 public IActionResult PostTypeOfEmployment(TypeOfEmployment data)
 {
     try
     {
         var res = _repository.AddTypeOfEmployment(data);
         if (res == -1)
         {
             return(Conflict(409));
         }
         return(Ok(res));
     }
     catch (Exception error)
     {
         return(BadRequest(error));
     }
 }
Пример #3
0
 public void AddAWorkedDayToRecord(DateTime day, PeriodOfPayment periodOfPay, TypeOfEmployment employment, decimal toPay, decimal?workedHours, String annotations)
 {
 }
Пример #4
0
 public void AddAWorkedDayToRecord(DateTime day, PeriodOfPayment periodOfPay, TypeOfEmployment employment)
 {
 }
Пример #5
0
 public DayOfWork(DateTime workDay, int workerID, PeriodOfPayment periodOfPay, TypeOfEmployment employment, decimal toPay, decimal?torkedHours, string annotations)
 {
 }