Beispiel #1
0
        public IActionResult DeleteOverTimeEntitlement(long id)
        {
            OverTimeEntitlement a = OverTimeEntitlement_repo.Find(id);

            if (a == null)
            {
                return(NotFound());
            }
            OverTimeEntitlement_repo.Delete(a);
            return(Ok());
        }
Beispiel #2
0
 public IActionResult UpdateOverTimeEntitlement([FromBody] OverTimeEntitlement model)
 {
     OverTimeEntitlement_repo.Update(model);
     return(new OkObjectResult(new { OverTimeEntitlementID = model.OverTimeEntitlementId }));
 }