public HttpResponseMessage GetListForProfile(GetListForProfileDTO postData) { try { var jp = new JournalParser(PortalSettings, ActiveModule.ModuleID, postData.ProfileId, postData.GroupId, UserInfo); return(Request.CreateResponse(HttpStatusCode.OK, jp.GetList(postData.RowIndex, postData.MaxRows), "text/html")); } catch (Exception exc) { Logger.Error(exc); throw new HttpException(500, exc.Message); } }
public HttpResponseMessage GetListForProfile(GetListForProfileDTO postData) { try { var jp = new JournalParser(PortalSettings, ActiveModule.ModuleID, postData.ProfileId, postData.GroupId, UserInfo); return Request.CreateResponse(HttpStatusCode.OK, jp.GetList(postData.RowIndex, postData.MaxRows), "text/html"); } catch (Exception exc) { Logger.Error(exc); throw new HttpException(500, exc.Message); } }