Ejemplo n.º 1
0
        public RegistrationReponse Registration(DTOs.Owner customer)
        {
            if (_customersQueryProcessor.Exists(customer.Email))
            {
                return(new RegistrationReponse
                {
                    AlreadyExists = true
                });
            }



            return(new RegistrationReponse
            {
                AlreadyExists = false
            });
        }
Ejemplo n.º 2
0
        public RegistrationReponse Registration(DTOs.Customer customer)
        {
            if (_customersQueryProcessor.Exists(customer.Username))
            {
                return(new RegistrationReponse
                {
                    AlreadyExists = true
                });
            }

            _customersQueryProcessor.Save(customer);

            return(new RegistrationReponse()
            {
                AlreadyExists = false
            });
        }