public ActionResult Create(int idDistributor)
        {
            ViewBag.Parent = "Quản lý giao hàng";
            ViewBag.Child  = "Thanh Toán Công nợ";
            isAdminLogged();
            CreateDebtViewModel model = new CreateDebtViewModel();
            var   user        = Session["admin"] as Account;
            Staff staff       = _staffService.GetByAccount(user.UserName);
            var   distributor = _distributorService.GetDistributor(idDistributor);

            model.idDebt          = _debtService.GenerateDebtId();
            model.idStaff         = staff.idStaff;
            model.staffName       = staff.staffName;
            model.idDistributor   = distributor.idDistributor;
            model.nameDistributor = distributor.name;
            model.createdDate     = DateTime.Now;
            model.debt            = distributor.debt.Value;
            return(View(model));
        }