public IActionResult Delete(string id) { var brewery = _breweryService.Get(id); if (brewery == null) { return(NotFound()); } _breweryService.Remove(brewery.Id); return(NoContent()); }
public IActionResult Delete(string id) { var brewery = _breweryService.Get(id); if (brewery == null) { return(NotFound()); } _breweryService.Remove(brewery.Id); return(NoContent()); }