public dynamic GetLookupList(string name) { try { JobConstants.LookupLists type = (JobConstants.LookupLists)Enum.Parse(typeof(JobConstants.LookupLists), name); return(JobServiceSystem.GetLookupList(type)); } catch (Exception ex) { return(null); } }
static public LookupListModel <dynamic> GetLookupList(JobConstants.LookupLists type) { IIrmaServiceDataModel dataModel = null; LookupListModel <dynamic> model = new LookupListModel <dynamic>(); model.Name = type.ToString(); string filter = null; switch (type) { } if (dataModel != null) { model.Items = (filter != null) ? dataModel.GetItems(filter, "Id") : dataModel.GetAllItems(); } model.Initialize(); return(model); }