Exemplo n.º 1
0
 public void Delete(HowToItem howToItem)
 {
     if (howToItem is null)
     {
         throw new ArgumentNullException(nameof(howToItem));
     }
     _context.Remove(howToItem);
 }
Exemplo n.º 2
0
        public void CreateHowToItem(HowToItem howToItem)
        {
            if (howToItem == null)
            {
                throw new ArgumentNullException(nameof(howToItem));
            }

            _context.Add(howToItem);
            SaveChanges();
        }
Exemplo n.º 3
0
 public void CreateHowToItem(HowToItem howToItem)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 4
0
 public void Update(HowToItem item)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 5
0
 public void Update(HowToItem item)
 {
     //No action required. DBContext is tracking changes. Don't forget to save the changes though.
 }