//[Authorize(Roles = "Admin")] public IHttpActionResult Delete(int id) { if (CourseDAO.Delete(id)) { return(Ok()); } return(BadRequest()); }
public object Delete(Course info) { try { ValidateNoCourseStudentInstan(info); var model = info.Map(); using (var dao = new CourseDAO()) { return(dao.Delete(model)); } } catch (Exception) { throw; } }
public void DeleteCourse(int id) { CourseDAO course = new CourseDAO(); course.Delete(id); }
public static bool Delete(Guid id) { return(CourseDAO.Delete(id)); }