/// <summary> /// Retrieves the list of values /// </summary> /// <returns></returns> // GET: api/Country public HttpResponseMessage GetBed() { try { var lst = _BedService.GetAllBed(); if (lst != null) { return(new HttpResponseMessage() { Content = new StringContent(JArray.FromObject(lst).ToString(), Encoding.UTF8, "application/json") }); } return(Request.CreateResponse(HttpStatusCode.OK, lst)); } catch (Exception ex) { throw ex; //return new HttpResponseMessage(HttpStatusCode.InternalServerError); } }