Exemplo n.º 1
0
        public Boolean SellerRegistration(SellerModel model)            //Seller Registration
        {
            if (_commonDA.EmailExistance(model.Email))
            {
                return(false);
            }

            var entity = _mapper.Map <SellerModel, Seller>(model);

            entity.Password = Hashing.Hash(entity.Password);
            entity.Status   = "Pending";


            if (_sellerDA.SellerRegistration(entity))
            {
                return(true);
            }
            return(false);
        }