public HttpResponseMessage GetAllShopping() { try { Shopping Bll = new Shopping(); var Data = Bll.GetAllData(); return(Request.CreateResponse(HttpStatusCode.OK, Data)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }