Esempio n. 1
0
        public ActionResult Create()
        {
            OAccount data = new OAccount();

            data.TrangThai    = false;
            ViewBag.Customers = new SelectList(khService.GetAll(), "MaKhach", "TenKhach");

            ViewBag.ListRoles = new SelectList(accountService.GetAllRole(), "MaQuyen", "TenQuyen");
            return(View(data));
        }
        public ActionResult GetAll(DataTableAjaxPostModel dataModel)
        {
            var KHs = KHService.GetAll(dataModel);

            return(Json(KHs));
        }