public virtual async Task <int> DeleteAsync(int id) { try { var vehicleById = await _repository.GetByIdAsync(id); return(await _repository.DeleteAsync(vehicleById)); } catch (Exception e) { throw e; } }
public async Task DeleteMake(int Id) { { await Repository.DeleteAsync(Id); } }