public ActionResult AddEditManager(UserProfile userProfile) { UserDomainLogic userdomainLogic = new UserDomainLogic(); userdomainLogic.AddUpdateUser(userProfile); TempData["Success"] = "Saved successfully"; CommonDomainLogic commonDomainLogic = new CommonDomainLogic(); userProfile.Cities = commonDomainLogic.GetCities(); userProfile.RolesList = commonDomainLogic.GetAllRoles(); return(RedirectToAction("ManageManagers")); }