public IActionResult Delete(int id) { var orgSchedule = _repo.Get(x => x.Id == id); if (orgSchedule == null) { return(NotFound()); } _repo.Delete(orgSchedule); return(new NoContentResult()); }
public IActionResult GetById(int id) { var scheduleData = _repo.Get(x => x.Id == id); return(new ObjectResult(scheduleData)); }