예제 #1
0
        public Boolean CustomerRegistration(CustomerModel model)        //Customer Registration
        {
            if (_commonDA.EmailExistance(model.Email))
            {
                return(false);
            }

            var entity = _mapper.Map <CustomerModel, Customer>(model);

            entity.Password = Hashing.Hash(entity.Password);

            if (_customerDA.CustomerRegistration(entity))
            {
                return(true);
            }
            return(false);
        }