Beispiel #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);
        }