Exemplo n.º 1
0
        public UserModel UpdateUser(UserModel model)
        {
            var script = string.Format("UPDATE [User] SET UserName='******',Password = '******' WHERE Id ={2}", model.UserName, model.Password, model.Id);

            _dbConnector.ExecuteCommand(new SqlCommand(script));

            DataStorageService.UpdateUserRole(model);

            DataStorageService.UpdateUserRoleGroup(model);

            return(model);
        }