public async Task <IActionResult> Index()
        {
            ServiceReference_Employee.Employee[] lstEMP = await es.getAllEmployeeAsync();

            ServiceReference_Supplier.Supplier[] lstSUP = await sup.getAllSupplierAsync();

            ServiceReference_Wholesaler.Wholesaler[] lstWS = await ws.getAllWholesalerAsync();

            ServiceReference_Invoice.Invoice[] lstInvoice = await iv.getAllInvoiceAsync();

            ServiceReference_Employee.Employee empId = await es.findEmployeebyIdAsync(1);

            ServiceReference_Article.Article[] lstArtcle = await arls.getAllArticleAsync();

            AdminModel adModel = new AdminModel
            {
                Employees   = lstEMP,
                Suppliers   = lstSUP,
                Wholesalers = lstWS,
                Invoices    = lstInvoice,
                empById     = empId,
                Articles    = lstArtcle
            };

            return(View(adModel));
        }
        public async Task <IActionResult> EmployeeEdit(int id)
        {
            ServiceReference_Employee.Employee e = await es.findEmployeebyIdAsync(id);

            ViewBag.flag    = flag;
            ViewBag.message = message;
            flag            = "";
            message         = "";
            return(View(e));
        }
        public async Task <IActionResult> EmployeeUpdate(ServiceReference_Employee.Employee e)
        {
            bool _boolean = await es.updateEmployeeAsync(e);

            if (_boolean)
            {
                flag    = "success";
                message = "Add new employee success";
            }
            else
            {
                flag    = "error";
                message = "Add new employee fail.";
            }
            return(RedirectToAction("EmployeeEdit/" + e.EmployeeId));
        }