/// <summary> /// Gets the information of Forms User has assigned/authorized. /// </summary> /// <param name="surveyId"></param> /// <returns></returns> public List <FormInfoModel> GetFormsInfoModelList(FormsInfoRequest formsInfoRequest) { FormsInfoResponse formInfoResponse = _dataEntryService.GetFormsInfo(formsInfoRequest); List <FormInfoModel> listOfForms = new List <FormInfoModel>(); foreach (var item in formInfoResponse.FormInfoList) { FormInfoModel formInfoModel = item.ToFormInfoModel(); listOfForms.Add(formInfoModel); } return(listOfForms); }
public FormsInfoResponse GetFormsInfo(FormsInfoRequest formsInfoRequest) { FormsInfoResponse result = new FormsInfoResponse(); Epi.Cloud.BLL.FormInfo implementation = new Epi.Cloud.BLL.FormInfo(_formInfoDao); try { List <FormInfoBO> FormInfoBOList = implementation.GetFormsInfo(formsInfoRequest.Criteria.UserId, formsInfoRequest.Criteria.CurrentOrgId); foreach (FormInfoBO item in FormInfoBOList) { result.FormInfoList.Add(item.ToFormInfoDTO()); } } catch (Exception ex) { throw; } return(result); }
/// <summary> /// Gets the information of Forms User has assigned/authorized. /// </summary> /// <param name="surveyId"></param> /// <returns></returns> public List <FormInfoModel> GetFormsInfoModelList(FormsInfoRequest formReq) { //_surveyInfoRequest.Criteria.SurveyIdList.Add(surveyId); //_surveyInfoRequest.Criteria.UserId = userId; //_surveyInfoRequest.Criteria.OrganizationKey = organizationKey; //FormsInfoRequest formReq = new FormsInfoRequest(); FormsInfoResponse formInfoResponse = _iSurveyInfoRepository.GetFormsInfoList(formReq); //FormsInfoResponse GetSurveyInfoList(FormsInfoRequest pRequestId) List <FormInfoModel> listOfForms = new List <FormInfoModel>(); foreach (var item in formInfoResponse.FormInfoList) { FormInfoModel formInfoModel = Mapper.ToFormInfoModel(item); listOfForms.Add(formInfoModel); } return(listOfForms); }
public FormsInfoResponse GetFormsInfoList(FormsInfoRequest pRequestId) { FormsInfoResponse result = (FormsInfoResponse)_iDataService.GetFormsInfo(pRequestId); return(result); }