public async Task <IActionResult> Delete(Guid id) { if (await _catalogService.GetRecipe(id) == null) { return(NotFound()); } await _catalogService.DeleteRecipe(id); return(NoContent()); }