public IActionResult Index(TblPoolSurvey tblPoolSurvey) { if (!string.IsNullOrEmpty(tblPoolSurvey.PoolTemplate.Gender)) { tblPoolSurvey.PoolTemplate.Gender = tblPoolSurvey.PoolTemplate.Gender.Trim(); } if (!string.IsNullOrEmpty(tblPoolSurvey.PoolTemplate.FamilyStatus)) { tblPoolSurvey.PoolTemplate.FamilyStatus = tblPoolSurvey.PoolTemplate.FamilyStatus.Trim(); } _survey.SendSurvey(tblPoolSurvey); ViewBag.FormList = _form.GetForms(); ViewBag.PoolList = _pool.GetPools(); ViewBag.CityList = _lookUps.GetCity(); ViewBag.FamilyStatusList = _lookUps.GetFamilyStatus(); ViewBag.GenderList = _lookUps.GetGender(); return(RedirectToAction("successScreen")); }