public ActionResult AddOperator() { ViewBag.Countries = _ICommonDataService.GetCountries().Select(x => new SelectListItem { Value = x.CountryId.ToString(), Text = x.Name }); ViewBag.States = _ICommonDataService.GetStates().Select(x => new SelectListItem { Value = x.StateId.ToString(), Text = x.Name }); ViewBag.Districts = _ICommonDataService.GetDistricts().Select(x => new SelectListItem { Value = x.DistrictId.ToString(), Text = x.Name }); ViewBag.Cities = _ICommonDataService.GetCities().Select(x => new SelectListItem { Value = x.CityId.ToString(), Text = x.Name }); ViewBag.Designations = _ICommonDataService.GetDesignations().Select(x => new SelectListItem { Value = x.DesignationId.ToString(), Text = x.Name }); return(PartialView("~/Areas/Admin/Views/Office/_AddOperator.cshtml")); }