public async Task <VehicleModel> DeleteAsync(int id) { var deleteItem = repository.repository.context.VehicleModels.FirstOrDefault(m => m.Id == id); return(mapper.Map <VehicleModel>(await repository.DeleteAsync(deleteItem.Id))); }
public async Task <IVehicleModel> DeleteAsync(int id) { return(await repository.DeleteAsync(id)); }