// GET: MonthlyBalance/Delete/5
        public ActionResult Delete(Nullable <int> id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Db             db             = new Db(DbServices.ConnectionString);
            MonthlyBalance monthlyBalance = MonthlyBalanceServices.Get(id.Value, db);

            if (monthlyBalance == null)
            {
                return(HttpNotFound());
            }
            return(View(monthlyBalance));
        }
        // GET: MonthlyBalance/Edit/5
        public ActionResult Edit(Nullable <int> id)
        {
            Db db = new Db(DbServices.ConnectionString);

            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MonthlyBalance monthlyBalance = MonthlyBalanceServices.Get(id.Value, db);

            if (monthlyBalance == null)
            {
                return(HttpNotFound());
            }

            ViewBag.EmployeeList     = new SelectList(EmployeeServices.List(db), "Id", "FirstName", monthlyBalance.Employee);
            ViewBag.PaymentGroupList = new SelectList(PaymentGroupServices.List(db), "Id", "Name", monthlyBalance.PaymentGroup);
            return(View(monthlyBalance));
        }