コード例 #1
0
        public IActionResult Create()
        {
            var model     = new FunctionViewModel();
            var functions = _functionService.GetAll();

            model.Categories = _functionService.FunctionsSelectListItem();
            model.Status     = Infrastructure.Enums.Status.Actived;
            model.IsActive   = true;
            return(View(model));
        }