예제 #1
0
 /// <summary>
 /// Create method,
 /// creates VehicleMake using VehicleMake Repository.
 /// </summary>
 /// <param name="entity">Model, type of IVehicleMake.</param>
 public async Task AddVehicleMakeAsync(IVehicleMake entity)
 {
     await repository.AddVehicleMakeAsync(entity);
 }
예제 #2
0
        /// <summary>
        /// ADDING VEHICLE MAKE
        /// </summary>
        /// <param name="vehicleMake"></param>

        public async Task AddVehicleMakeAsync(VehicleMake vehicleMake)
        {
            await _repository.AddVehicleMakeAsync(AutoMapper.Mapper.Map <VehicleMakeEntity>(vehicleMake));
        }
예제 #3
0
 public Task <int> AddVehicleMakeAsync(IVehicleMakeDTO vehicleMake)
 {
     return(vehicleMakeRepository.AddVehicleMakeAsync(vehicleMake));
 }