public HttpResponseMessage SHPR_SERVICE_LIST(ServiceEntity oBe) { try { if (string.IsNullOrWhiteSpace((string)HttpContext.Current.Session["username"])) { return(Request.CreateErrorResponse(HttpStatusCode.Unauthorized, "Acceso no autorizado.")); } var oBr = new TicketRule(); var oList = oBr.SHPR_SERVICE_LIST(oBe); return(Request.CreateResponse(HttpStatusCode.OK, oList)); } catch (Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message)); } }