예제 #1
0
        public ActionResult EnableModules(List <ModuleShortInfo> model)
        {
            var licenseResult = licenseService.EditModules(User.Identity.GetUserId <int>(), model, true);

            if (licenseResult.Succed)
            {
                var license     = licenseResult.GetResult();
                var modulesInfo = licenseService.GetModulesShortInfo(license, false);
                return(PartialView("SwitchModules", modulesInfo));
            }
            return(Content("Error"));
        }