Пример #1
0
        public IActionResult DeleteEmployeeOverTimeEntitlment(long id)
        {
            EmployeeOverTimeEntitlement a = EmployeeOverTimeEntitlement_repo.Find(id);

            if (a == null)
            {
                return(NotFound());
            }
            EmployeeOverTimeEntitlement_repo.Delete(a);
            return(Ok());
        }
Пример #2
0
 public IActionResult UpdateEmployeeOverTimeEntitlment([FromBody] EmployeeOverTimeEntitlement model)
 {
     EmployeeOverTimeEntitlement_repo.Update(model);
     return(new OkObjectResult(new { EmployeeOverTimeEntitlmentID = model.EmployeeOverTimeEntitlementId }));
 }