/// <summary>
 /// Create method,
 /// creates a new VehicleModel using VehicleModel Repository.
 /// </summary>
 /// <param name="entity">Model, type of IVehicleModel.</param>
 public async Task AddVehicleModelAsync(IVehicleModel entity)
 {
     await repository.AddVehicleModelAsync(entity);
 }
Example #2
0
 public Task <int> AddVehicleModelAsync(IVehicleModelDTO vehicleModel)
 {
     return(vehicleModelRepository.AddVehicleModelAsync(vehicleModel));
 }
Example #3
0
 /// <summary>
 /// ADDING VEHICLE MODEL
 /// </summary>
 /// <param name="vehicleModel"></param>
 public async Task AddVehicleModelAsync(VehicleModel vehicleModel)
 {
     await _repository.AddVehicleModelAsync(AutoMapper.Mapper.Map <VehicleModelEntity>(vehicleModel));
 }