Esempio n. 1
0
        public virtual IActionResult Create()
        {
            if (!_permissionService.Authorize(StandardPermissionProvider.ManageContractType))
            {
                return(AccessDeniedView());
            }

            //prepare model
            var model = _contractModelFactory.PrepareContractTypeModel(new ContractTypeModel(), null);

            return(View(model));
        }