/// <summary> /// Retrieves the list of values /// </summary> /// <returns></returns> public HttpResponseMessage GetGuest() { try { var lst = _GuestService.GetAllGuest(); 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); } }