Example #1
0
        public IActionResult Delete(int listId, int id)
        {
            if (listId != _listItemServices.Owner(id))
            {
                return(BadRequest());
            }

            return(Ok(_listItemServices.Delete(id)));
        }
Example #2
0
 private void DeleteModelItems(ListModel model)
 {
     model?.Items.ForEach(li => _listItemServices.Delete(li.Id));
 }