public IActionResult DeleteOverTimeType(long id) { OverTimeType a = OverTimeType_repo.Find(id); if (a == null) { return(NotFound()); } OverTimeType_repo.Delete(a); return(Ok()); }
public IActionResult UpdateOverTimeType([FromBody] OverTimeType model) { OverTimeType_repo.Update(model); return(new OkObjectResult(new { OverTimeTypeID = model.OverTimeTypeId })); }