public IHttpActionResult GetFoodItem() { return(Ok(FoodItemRepo.GetAll())); }
public async Task <IActionResult> ViewAll() { var allFoodItems = await FoodItemRepository.GetAll(); return(View(allFoodItems)); }
//[BasicAuthorization] public IHttpActionResult Get() { return(Ok(FoodRepo.GetAll())); }
public List <FoodItem> GetAll() { return(_foodItemRepository.GetAll()); }