Example #1
0
        public async Task <VehicleMake> DeleteAsync(int id)
        {
            var deleteItem = repository.repository.context.VehicleMakes.FirstOrDefault(m => m.Id == id);

            return(mapper.Map <VehicleMake>(await repository.DeleteAsync(deleteItem.Id)));
        }
 public async Task <IVehicleMake> DeleteAsync(int id)
 {
     return(await repository.DeleteAsync(id));
 }