示例#1
0
        public IActionResult AddUser(string FirstName, string LastName, string PasswordHash, string Email, UserRole Role)
        {
            var uzer = new User(FirstName, LastName, PasswordHash, Email, Role);

            var User_list = new List <User>();

            User_list.Add(_Userservice.Create(uzer));

            var viewModel = new ShowAllUserViewModel()
            {
                Users = User_list
            };

            return(View(viewModel));
        }