public IHttpActionResult GetFoodItem()
 {
     return(Ok(FoodItemRepo.GetAll()));
 }
Пример #2
0
        public async Task <IActionResult> ViewAll()
        {
            var allFoodItems = await FoodItemRepository.GetAll();

            return(View(allFoodItems));
        }
 //[BasicAuthorization]
 public IHttpActionResult Get()
 {
     return(Ok(FoodRepo.GetAll()));
 }
Пример #4
0
 public List <FoodItem> GetAll()
 {
     return(_foodItemRepository.GetAll());
 }