public IActionResult DeleteLeaveDayType(long id) { LeaveDayType a = LeaveDayType_repo.Find(id); if (a == null) { return(NotFound()); } LeaveDayType_repo.Delete(a); return(Ok()); }
public IActionResult UpdateLeaveDayType([FromBody] LeaveDayType model) { LeaveDayType_repo.Update(model); return(new OkObjectResult(new { LeaveDayTypeID = model.LeaveDayTypeId })); }