public void Remove(int reqItemId) { RequisitionItem item = context.RequisitionItems.Find(reqItemId); context.RequisitionItems.Remove(item); context.SaveChanges(); }
public void Save(RequisitionItem reqItem) { context.RequisitionItems.Add(reqItem); context.SaveChanges(); }
public RequisitionItem Find(int reqItemId) { RequisitionItem item = context.RequisitionItems.Find(reqItemId); return(item); }