Ejemplo n.º 1
0
        public async Task <IActionResult> CreateOrEditModal(int?id)
        {
            var model = new CreateOrEditDynamicParameterViewModel
            {
                AllowedInputTypes = _dynamicEntityParameterDefinitionManager.GetAllAllowedInputTypeNames()
            };

            if (id.HasValue)
            {
                model.DynamicParameterDto = await _dynamicParameterAppService.Get(id.Value);
            }
            else
            {
                model.DynamicParameterDto = new DynamicParameterDto();
            }

            return(PartialView("_CreateOrEditModal", model));
        }
 public List <string> GetAllAllowedInputTypeNames()
 {
     return(_dynamicEntityParameterDefinitionManager.GetAllAllowedInputTypeNames());
 }