public IActionResult addVendor(TblVendor tv) { //var t = ourdbCntxt.TblVendor.Find(tv.vendorId); ourdbCntxt.TblVendor.Add(tv); ourdbCntxt.SaveChanges(); return(RedirectToAction(nameof(VendorsController.viewAllVendors))); }
public IActionResult SaleItem(TblSales ts) { ourdbcontxt.TblSales.Add(ts); ourdbcontxt.SaveChanges(); return(RedirectToAction(nameof(SalesController.SaleHistory))); }
public IActionResult addCustomer(TblCustomer tc) { ourdbcontxt.TblCustomer.Add(tc); ourdbcontxt.SaveChanges(); return(RedirectToAction(nameof(CustomerController.viewAllCustomers))); }
public IActionResult addItem(TblItem ti) { ourdbcontxt.TblItem.Add(ti); ourdbcontxt.SaveChanges(); return(RedirectToAction(nameof(itemsController.viewAllItems))); }
public IActionResult register(tblUser tr) { mydbCntxt.tblUser.Add(tr); mydbCntxt.SaveChanges(); return(RedirectToAction(nameof(RegistrationController.viewAllUsers))); }
public IActionResult purchaseNewQuantity(TblPurchase tp) { ourdbcontxt.TblPurchase.Add(tp); ourdbcontxt.SaveChanges(); return(RedirectToAction(nameof(PurchaseController.purchaseHistory))); }
public IActionResult catagories(TblCatagories tc) { dbContet.TblCatagories.Add(tc); dbContet.SaveChanges(); return(RedirectToAction(nameof(CatagoriesController.viewAllCatagories))); }