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)); } }
public void AddAWorkedDayToRecord(DateTime day, PeriodOfPayment periodOfPay, TypeOfEmployment employment, decimal toPay, decimal?workedHours, String annotations) { }
public void AddAWorkedDayToRecord(DateTime day, PeriodOfPayment periodOfPay, TypeOfEmployment employment) { }
public DayOfWork(DateTime workDay, int workerID, PeriodOfPayment periodOfPay, TypeOfEmployment employment, decimal toPay, decimal?torkedHours, string annotations) { }