public virtual Task <int> Update(IVehicleMakeDTO vehicleMakePoco) { try { return(_repository.UpdateAsync(vehicleMakePoco)); } catch (Exception e) { throw e; } }
public virtual async Task <int> InsertAsync(IVehicleMakeDTO vehicleMakePoco) { try { return(await _repository.InsertAsync(vehicleMakePoco)); } catch (Exception e) { throw e; } }
public virtual async Task <int> InsertAsync(IVehicleMakeDTO vehicleMakePoco) { try { var vehicleMake = Mapper.Map <VehicleMake>(vehicleMakePoco); await _unitOfWork.AddAsync <VehicleMake>(vehicleMake); return(await _unitOfWork.CommitAsync()); } catch (Exception e) { throw e; } }
public Task <int> UpdateVehicleMakeAsync(IVehicleMakeDTO vehicleMake) { var vehicle = mapper.Map <VehicleMake>(vehicleMake); return(base.UpdateAsync(vehicle)); }
public Task <int> UpdateVehicleMakeAsync(IVehicleMakeDTO vehicleMake) { return(vehicleMakeRepository.UpdateVehicleMakeAsync(vehicleMake)); }
public Task <int> AddVehicleMakeAsync(IVehicleMakeDTO vehicleMake) { return(vehicleMakeRepository.AddVehicleMakeAsync(vehicleMake)); }