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());
 }