예제 #1
0
        public async Task <ActionResult> Delete(int id)
        {
            if (await scheduleLogic.FindByIdAsync(id) == null)
            {
                return(NotFound());
            }

            if (await scheduleLogic.DeleteAsync(id))
            {
                return(NoContent());
            }

            return(BadRequest("Error Processing request!"));
        }