public IActionResult Delete(int id)
        {
            var orgSchedule = _repo.Get(x => x.Id == id);

            if (orgSchedule == null)
            {
                return(NotFound());
            }

            _repo.Delete(orgSchedule);

            return(new NoContentResult());
        }
예제 #2
0
        public IActionResult GetById(int id)
        {
            var scheduleData = _repo.Get(x => x.Id == id);

            return(new ObjectResult(scheduleData));
        }