Example #1
0
        public ActionResult CreateUser()
        {
            ViewBag.MainTitle = "UserRegistration";
            ViewBag.Title     = "Users";
            ViewBag.Icon      = "fa fa-user";
            UserRegistrationBO  objUserRegistrationBO  = new UserRegistrationBO();
            UserRegistrationBAL objUserRegistrationBAL = new UserRegistrationBAL();

            objUserRegistrationBO.CountriesList    = objUserRegistrationBAL.CountriesList();
            objUserRegistrationBO.RolesList        = objUserRegistrationBAL.RolesList();
            objUserRegistrationBO.GenderList       = objUserRegistrationBAL.GenderList();
            objUserRegistrationBO.LocationList     = objUserRegistrationBAL.LocationList();
            objUserRegistrationBO.DonorProgramList = objUserRegistrationBAL.getDonorProgramList(Convert.ToInt32(ViewData["LoginUserId"]));
            @ViewBag.ImagePath = Url.Content("../assets/images/user-1.png");
            return(PartialView("AddUser", objUserRegistrationBO));
        }
Example #2
0
        public ActionResult EditUser(int iUserId)
        {
            UserRegistrationBAL objUserRegistrationBAL = new UserRegistrationBAL();
            UserRegistrationBO  objUserRegistrationBO  = objUserRegistrationBAL.EditUserDetails(iUserId);

            objUserRegistrationBO.CountriesList    = objUserRegistrationBAL.CountriesList();
            objUserRegistrationBO.GenderList       = objUserRegistrationBAL.GenderList();
            objUserRegistrationBO.RolesList        = objUserRegistrationBAL.RolesList();
            objUserRegistrationBO.LocationList     = objUserRegistrationBAL.LocationList();
            objUserRegistrationBO.DonorProgramList = objUserRegistrationBAL.getDonorProgramList(iUserId);

            if (objUserRegistrationBO.FileSavedName == "" || objUserRegistrationBO.FileSavedName == null)
            {
                ViewBag.ImagePath = Url.Content("../assets/images/user-1.png");
            }
            else
            {
                ViewBag.ImagePath = Url.Content(strImageDisplayPath + objUserRegistrationBO.FileSavedName);
            }

            return(PartialView("EditUserView", objUserRegistrationBO));
        }