public List <SubscriptTypeEntity> GetActiveSubscriptTypeList() { _commonDataAccess = new CommonDataAccess(_context); var lst = _commonDataAccess.GetActiveSubscriptType(); return(lst); }
public IDictionary <string, string> GetSubscriptTypeSelectList() { _commonDataAccess = new CommonDataAccess(_context); var lst = _commonDataAccess.GetActiveSubscriptType(); return((from x in lst select new { key = x.SubscriptTypeId.ToString(), value = x.SubscriptTypeName }).ToDictionary(t => t.key, t => t.value)); }