Example #1
0
        public async Task <VehicleModel> UpdateAsync(VehicleModel updatedItem)
        {
            var updatedItemEntity = await repository.UpdateAsync(mapper.Map <VehicleModelEntity>(updatedItem));

            return(mapper.Map <VehicleModel>(updatedItemEntity));
        }
 public async Task <IVehicleModel> UpdateAsync(IVehicleModel updatedItem)
 {
     return(await repository.UpdateAsync(updatedItem));
 }