public async Task <SystemLookupItemValueModel> GetItem(string name, string id)
        {
            SystemLookupItemValue entity = await _systemLookupItemManager.GetItemAsync(name, id);

            var model = new SystemLookupItemValueModel(entity);

            return(model);
        }
Exemple #2
0
 public SystemLookupItemValue(SystemLookupItemValueModel model)
 {
     Id            = string.IsNullOrEmpty(model.Id) ? Guid.NewGuid().ToString() : model.Id;
     CanonicalName = model.CanonicalName;
     DisplayName   = model.DisplayName;
     Abbreviation  = model.Abbreviation;
     Description   = model.Description;
     Enabled       = model.Enabled;
 }