public IHttpActionResult Delete(int id) { if (id <= 0) { return(BadRequest("Not a valid division id")); } dateService.Delete(id); return(Ok()); }