Exemplo n.º 1
0
        public void DeleteTest()
        {
            List <Food> foodItems = FoodItemManager.Load();
            FoodItem    foodItem  = foodItems.FirstOrDefault(u => u.FDCId == 1104086);

            int results = FoodItemManager.Delete(foodItem, true);

            Assert.IsTrue(results > 0);
        }
Exemplo n.º 2
0
 // DELETE api/values/5
 public int Delete([FromBody] Food value)
 {
     return(FoodItemManager.Delete(value));
 }