public ActionResult Edit(ballance ballance) { if (ModelState.IsValid) { db.ballances.Attach(ballance); db.ObjectStateManager.ChangeObjectState(ballance, EntityState.Modified); db.SaveChanges(); return RedirectToAction("Index"); } return View(ballance); }
/// <summary> /// Deprecated Method for adding a new object to the ballances EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToballances(ballance ballance) { base.AddObject("ballances", ballance); }
/// <summary> /// Create a new ballance object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="date">Initial value of the Date property.</param> public static ballance Createballance(global::System.Int32 id, global::System.DateTime date) { ballance ballance = new ballance(); ballance.Id = id; ballance.Date = date; return ballance; }