예제 #1
0
        public async Task <IActionResult> Delete(int id)
        {
            try
            {
                await _brandsRepository.Delete(id);

                return(NoContent());
            }
            catch (InvalidBrandException)
            {
                return(NotFound());
            }
        }
예제 #2
0
 public void Delete(int id)
 {
     _brandsRepository.Delete(id);
 }