//// GET: Billings/Create //public ActionResult Create() //{ // ViewBag.CreatedBy = new SelectList(db.Users, "UserId", "UserName"); // return View(); //} //// POST: Billings/Create //// To protect from overposting attacks, please enable the specific properties you want to bind to, for //// more details see https://go.microsoft.com/fwlink/?LinkId=317598. //[HttpPost] //[ValidateAntiForgeryToken] //public ActionResult Create([Bind(Include = "BillingId,TotalPrice,TotalDiscount,Amount,CreatedBy,Name,Addres,ContactNo,DateCreated,DateModfied,DateDeleted")] Billing billing) //{ // if (ModelState.IsValid) // { // db.Billings.Add(billing); // db.SaveChanges(); // return RedirectToAction("Index"); // } // ViewBag.CreatedBy = new SelectList(db.Users, "UserId", "UserName", billing.CreatedBy); // return View(billing); //} //// GET: Billings/Edit/5 //public ActionResult Edit(int? id) //{ // if (id == null) // { // return new HttpStatusCodeResult(HttpStatusCode.BadRequest); // } // Billing billing = db.Billings.Find(id); // if (billing == null) // { // return HttpNotFound(); // } // ViewBag.CreatedBy = new SelectList(db.Users, "UserId", "UserName", billing.CreatedBy); // return View(billing); //} //// POST: Billings/Edit/5 //// To protect from overposting attacks, please enable the specific properties you want to bind to, for //// more details see https://go.microsoft.com/fwlink/?LinkId=317598. //[HttpPost] //[ValidateAntiForgeryToken] //public ActionResult Edit([Bind(Include = "BillingId,TotalPrice,TotalDiscount,Amount,CreatedBy,Name,Addres,ContactNo,DateCreated,DateModfied,DateDeleted")] Billing billing) //{ // if (ModelState.IsValid) // { // db.Entry(billing).State = EntityState.Modified; // db.SaveChanges(); // return RedirectToAction("Index"); // } // ViewBag.CreatedBy = new SelectList(db.Users, "UserId", "UserName", billing.CreatedBy); // return View(billing); //} //// GET: Billings/Delete/5 //public ActionResult Delete(int? id) //{ // if (id == null) // { // return new HttpStatusCodeResult(HttpStatusCode.BadRequest); // } // Billing billing = db.Billings.Find(id); // if (billing == null) // { // return HttpNotFound(); // } // return View(billing); //} //// POST: Billings/Delete/5 //[HttpPost, ActionName("Delete")] //[ValidateAntiForgeryToken] //public ActionResult DeleteConfirmed(int id) //{ // Billing billing = db.Billings.Find(id); // db.Billings.Remove(billing); // db.SaveChanges(); // return RedirectToAction("Index"); //} protected override void Dispose(bool disposing) { if (disposing) { billingService.Dispose(); } base.Dispose(disposing); }
protected override void OnDestroy() { Android.Util.Log.Debug("Activity1", "OnDestroy."); if (m_service != null) { m_service.Dispose(); } base.OnDestroy(); }