public static void DeleteSaleInfoFromId(int id) { using (var db = new MVPOnBoardAPIContext()) { db.Sales.Remove(SaleDAL.GetSaleFromId(id)); db.SaveChanges(); } }
public Sales Edit(int id) { return(SaleDAL.GetSaleFromId(id)); }
public static void DeleteSaleInfoFromId(int id) { using (var db = new MVPOnBoardAPIContext()) { db.Sales.Remove(SaleDAL.GetSaleFromId(id)); db.SaveChanges(); } }
public Sales Edit(int id) { return(SaleDAL.GetSaleFromId(id)); }