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!")); }
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!")); }