コード例 #1
0
 public virtual async Task <RentalLocationItem> CreateOneRentalLocation(CreateRentalLocationModel item)
 {
     return(await _rentalLocationService.CreateAsync(item));
 }
コード例 #2
0
        public async Task <RentalLocationItem> CreateAsync(CreateRentalLocationModel item)
        {
            var rentalLocation = _mapper.Map <RentalLocationItem>(item);

            return(await _rentalLocationDataService.CreateAsync(rentalLocation));
        }