public HttpResponseMessage GetMSWorkFlows() { try { var _lstMSWorkFlows = MSServices.GetMSWorkFlows(); var _wrkFlwOptions = _lstMSWorkFlows.Select(m => new SelectOption { Name = m.WorkFlowName, Value = m.MockSurveyWorkFlowID.ToString(), FullText = m.BoilerPlate } ).ToList(); return(Request.CreateResponse(HttpStatusCode.OK, _wrkFlwOptions)); } catch (Exception ex) { ex.Data.Add("HTTPReferrer", "JCRAPI/MockSurveyInfo/GetMSWorkFlows"); WebExceptionHelper.LogException(ex, null); return(null); } }
public HttpResponseMessage UpdateMSWorkFlow([FromBody] MSWrkFlWUpdate _msWrkFlWUpdate) { try { MSServices.UpdateMSWorkFlow(_msWrkFlWUpdate.mockSurveyWorkFlowId, _msWrkFlWUpdate.userId, _msWrkFlWUpdate.siteIDs); return(Request.CreateResponse(HttpStatusCode.OK)); } catch (Exception ex) { ex.Data.Add("HTTPReferrer", "JCRAPI/MockSurveyInfo/GetMSCorporateSettings"); WebExceptionHelper.LogException(ex, null); return(null); } }
public HttpResponseMessage GetMSCorporateSettings(int userID) { try { var MSCorpSettings = MSServices.GetAllCorpSettings(userID); return(Request.CreateResponse(HttpStatusCode.OK, MSCorpSettings)); } catch (Exception ex) { ex.Data.Add("HTTPReferrer", "JCRAPI/MockSurveyInfo/GetMSCorporateSettings"); WebExceptionHelper.LogException(ex, null); return(null); } }