public async Task <ActionResult> DeleteConfirmed(int id) { T_SALES_MST t_SALES_MST = await db.T_SALES_MST.FindAsync(id); db.T_SALES_MST.Remove(t_SALES_MST); await db.SaveChangesAsync(); return(RedirectToAction("Index")); }
public async Task <ActionResult> Edit([Bind(Include = "SlNo,InvoiceNo,SalesDate,SType,SubTotal,Vat,GrossAmount,Discount,DiscountTk,ReceiveAmount,DueCollection,CashPaid,CashChange,CustomerID,NetAmount,CustName,CustAddress,CustPhone,Description,IUSER,EUSER,IDAT,EDAT,BrId")] T_SALES_MST t_SALES_MST) { if (ModelState.IsValid) { db.Entry(t_SALES_MST).State = EntityState.Modified; await db.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(t_SALES_MST)); }
// GET: T_SALES_MST/Delete/5 public async Task <ActionResult> Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } T_SALES_MST t_SALES_MST = await db.T_SALES_MST.FindAsync(id); if (t_SALES_MST == null) { return(HttpNotFound()); } return(View(t_SALES_MST)); }