public ActionResult DeleteConfirmed(int id) { OpeningBlance openingBlance = db.OpeningBlances.Find(id); db.OpeningBlances.Remove(openingBlance); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,ProductId,TransectionNo,TransectionType,TransectionDate,TransectionQty,TransectionQtyPrev,StockQty,StockUnitPrice,StockAmount,CompanyId,BranchId,SupplierId,BrandId,Active,Archive,IsSynchronized,IsUpdated,SynchronizationType,Remarks,AddedBy,AddedDate,AddedFromIp,UpdatedBy,UpdatedDate,UpdatedFromIp")] OpeningBlance openingBlance) { if (ModelState.IsValid) { db.Entry(openingBlance).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(openingBlance)); }
// GET: OpeningBlances/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } OpeningBlance openingBlance = db.OpeningBlances.Find(id); if (openingBlance == null) { return(HttpNotFound()); } return(View(openingBlance)); }
// GET: OpeningBlances/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new Microsoft.AspNet.Mvc.HttpStatusCodeResult(HttpStatusCode.BadRequest)); } OpeningBlance openingBlance = db.OpeningBlances.Find(id); if (openingBlance == null) { return(HttpNotFound()); } return(View(openingBlance)); }
public void UpdateOpeningBlance(OpeningBlance openingBlance) { throw new NotImplementedException(); }
public void InsertOpeningBlance(OpeningBlance openingBlance) { throw new NotImplementedException(); }