public RegistrationReponse Registration(DTOs.Owner customer) { if (_customersQueryProcessor.Exists(customer.Email)) { return(new RegistrationReponse { AlreadyExists = true }); } return(new RegistrationReponse { AlreadyExists = false }); }
public RegistrationReponse Registration(DTOs.Customer customer) { if (_customersQueryProcessor.Exists(customer.Username)) { return(new RegistrationReponse { AlreadyExists = true }); } _customersQueryProcessor.Save(customer); return(new RegistrationReponse() { AlreadyExists = false }); }