Esempio n. 1
0
        public CustomUserEditModel CheckUserByCustomUserAccountNumber(CustomUserEditModel model)
        {
            //First check to see if this user exists
            //_customUserDal.SaveUser(model);
            //var exists = _customUserDal.CustomUserByAccountNumber(model.AccountNumberString);

            if (model.NewUser)
            {
                var m = new CustomUser();
                m.Update(model);

                var saved = _customUserDal.SaveUser(m);

                model.Update(saved);
                return(model);
            }
            return(model);
        }