Example #1
0
        public async Task <bool> Register(Dealer dealer)
        {
            //Check to see if user already exist
            var isAvailableUserDetails = await _dealerRepo.CheckAvailability(dealer.UserName, dealer.EmailAddress);

            if (isAvailableUserDetails)
            {
                await _dealerRepo.AddDealer(dealer);

                return(true);
            }

            return(false);
        }
Example #2
0
 public void AddDealer(Dealer dealer)
 {
     dealerRepository.AddDealer(dealer);
 }