/// <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); }
/// <summary> /// ADDING VEHICLE MAKE /// </summary> /// <param name="vehicleMake"></param> public async Task AddVehicleMakeAsync(VehicleMake vehicleMake) { await _repository.AddVehicleMakeAsync(AutoMapper.Mapper.Map <VehicleMakeEntity>(vehicleMake)); }
public Task <int> AddVehicleMakeAsync(IVehicleMakeDTO vehicleMake) { return(vehicleMakeRepository.AddVehicleMakeAsync(vehicleMake)); }