private void GetFormModel(string surveyid, int UserId, Guid UserId1, out int OrgnizationId, out FormModel FormModel) { FormModel = new Models.FormModel(); FormModel.UserHighestRole = int.Parse(Session["UserHighestRole"].ToString()); // Get OrganizationList OrganizationRequest Request = new OrganizationRequest(); Request.UserId = UserId; Request.UserRole = FormModel.UserHighestRole; OrganizationResponse Organizations = _isurveyFacade.GetOrganizationsByUserId(Request); FormModel.OrganizationList = Mapper.ToOrganizationModelList(Organizations.OrganizationList); //Get Forms OrgnizationId = Organizations.OrganizationList[0].OrganizationId; FormModel.FormList = GetFormsInfoList(UserId1, OrgnizationId); // Set user Info FormModel.UserFirstName = Session["UserFirstName"].ToString(); FormModel.UserLastName = Session["UserLastName"].ToString(); FormModel.SelectedForm = surveyid; }