public IActionResult DeleteFoodFromList(int foodItemId)
{
FoodItem singleById = _foodRepository.GetSingle(foodItemId);
if (singleById == null)
{
return NotFound();
}
_foodRepository.Delete(foodItemId);
_coolMessageHubContext.Clients.All.FoodDeleted();
return new NoContentResult();
}