public bool Add(RentalDto model, out string id) { var mapper = MapperToModel(); var rental = mapper.Map <RentalDto, Rental>(model); return(_rentalRepository.Add(rental, out id)); }
private static void AddRental() { Console.WriteLine(""); Console.WriteLine(""); rentalRepo.Add(); }