示例#1
0
        public AdministratorListItemViewModel Create(AdministratorEditModel editModel)
        {
            Administrator administrator = new Administrator(editModel.Username.ToUpper());

            _adminDAO.Store(administrator);

            AdministratorListItemViewModel viewModel = new AdministratorListItemViewModel
            {
                Username = editModel.Username.ToUpper()
            };

            return(viewModel);
        }