public async Task <ActionResult <Ingredients> > GetById(string id) { var ingredients = await _ingredientsService.GetByIdAsync(id); if (ingredients == null) { return(NotFound()); } return(Ok(ingredients)); }
public async Task <ActionResult <Ingredients> > GetById(string id) { var ingredients = await _ingredientsService.GetByIdAsync(id); if (ingredients == null) { return(NotFound()); } return(Ok(ingredients)); }