Example #1
0
        public async Task <ActionResult> DeleteGarageAsync(int id)
        {
            var garage = await _garageService.GetGarageByIdAsync(id);

            if (garage == null)
            {
                return(NotFound());
            }

            await _garageService.DeleteGarageAsync(garage);

            return(NoContent());
        }