public async Task <IActionResult> CreateOrEditModal(int?id)
        {
            var model = new CreateOrEditDynamicPropertyViewModel
            {
                AllowedInputTypes = _dynamicEntityPropertyDefinitionManager.GetAllAllowedInputTypeNames()
            };

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

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