Exemplo n.º 1
0
        public void DeleteTest()
        {
            List <Meal> meals = MealManager.Load();
            Meal        meal  = meals.FirstOrDefault(u => u.Description == "Breakfast");

            int results = MealManager.Delete(meal, true);

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