public IActionResult DeleteShift(long id) { Shift a = Shift_repo.Find(id); if (a == null) { return(NotFound()); } Shift_repo.Delete(a); return(Ok()); }