public async Task <ActionResult> DeleteConfirmed(int id)
        {
            MonthlyBillSetUP monthlyBillSetUP = await db.MonthlyBillSetUPs.FindAsync(id);

            db.MonthlyBillSetUPs.Remove(monthlyBillSetUP);
            await db.SaveChangesAsync();

            return(RedirectToAction("Index"));
        }
        public async Task <ActionResult> Edit([Bind(Include = "mbillsetupid,HeaderId,Amount")] MonthlyBillSetUP monthlyBillSetUP)
        {
            if (ModelState.IsValid)
            {
                db.Entry(monthlyBillSetUP).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("Index"));
            }
            ViewBag.HeaderId = new SelectList(db.Headers, "HeaderId", "HeaderName", monthlyBillSetUP.HeaderId);
            return(View(monthlyBillSetUP));
        }
        // GET: MonthlyBillSetUPs/Details/5
        public async Task <ActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MonthlyBillSetUP monthlyBillSetUP = await db.MonthlyBillSetUPs.FindAsync(id);

            if (monthlyBillSetUP == null)
            {
                return(HttpNotFound());
            }
            return(View(monthlyBillSetUP));
        }
        // GET: MonthlyBillSetUPs/Edit/5
        public async Task <ActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MonthlyBillSetUP monthlyBillSetUP = await db.MonthlyBillSetUPs.FindAsync(id);

            if (monthlyBillSetUP == null)
            {
                return(HttpNotFound());
            }
            ViewBag.HeaderId = new SelectList(db.Headers, "HeaderId", "HeaderName", monthlyBillSetUP.HeaderId);
            return(View(monthlyBillSetUP));
        }