예제 #1
0
        public void Delete(int mealid)
        {
            var meal = _context.Meals.Find(mealid);

            _context.Remove(meal);
            _context.SaveChanges();
        }
예제 #2
0
        public void Delete(int workoutid)
        {
            var workout = _context.Workouts.Find(workoutid);

            _context.Remove(workout);
            _context.SaveChanges();
        }