public async Task <SystemLookupItemValueModel> GetItem(string name, string id) { SystemLookupItemValue entity = await _systemLookupItemManager.GetItemAsync(name, id); var model = new SystemLookupItemValueModel(entity); return(model); }
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; }