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); }
public void AddDealer(Dealer dealer) { dealerRepository.AddDealer(dealer); }