Example #1
0
        public IActionResult DeleteLeaveDayType(long id)
        {
            LeaveDayType a = LeaveDayType_repo.Find(id);

            if (a == null)
            {
                return(NotFound());
            }
            LeaveDayType_repo.Delete(a);
            return(Ok());
        }
Example #2
0
 public IActionResult UpdateLeaveDayType([FromBody] LeaveDayType model)
 {
     LeaveDayType_repo.Update(model);
     return(new OkObjectResult(new { LeaveDayTypeID = model.LeaveDayTypeId }));
 }