public void Delete(HowToItem howToItem) { if (howToItem is null) { throw new ArgumentNullException(nameof(howToItem)); } _context.Remove(howToItem); }
public void CreateHowToItem(HowToItem howToItem) { if (howToItem == null) { throw new ArgumentNullException(nameof(howToItem)); } _context.Add(howToItem); SaveChanges(); }
public void CreateHowToItem(HowToItem howToItem) { throw new System.NotImplementedException(); }
public void Update(HowToItem item) { throw new System.NotImplementedException(); }
public void Update(HowToItem item) { //No action required. DBContext is tracking changes. Don't forget to save the changes though. }