public HttpResponseMessage List() { HttpResponseMessage response = null; try { response = Request.CreateResponse(HttpStatusCode.OK, bloodTypeService.GetAllBloodType()); } catch (Exception ex) { response = Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message); } return(response); }