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



            return(new RegistrationReponse
            {
                AlreadyExists = false
            });
        }
Example #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
            });
        }