Exemple #1
0
        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;
            }
        }
Exemple #2
0
 public async Task DeleteMake(int Id)
 {
     {
         await Repository.DeleteAsync(Id);
     }
 }