public List <ExAppCustAlias> GetAppCustAliasByAppUser(string appUser) { APP_USER_ALIAS_LINK_DAL ualDAL = new APP_USER_ALIAS_LINK_DAL(dal.db); List <APP_USER_ALIAS_LINK> ualList = ualDAL.GetUserAliasLinks(appUser); List <ExAppCustAlias> exACAList = new List <ExAppCustAlias>(); foreach (var item in ualList) { APP_CUST_ALIAS aca = dal.GetAppCustAlias(item.ALIAS_NAME); ExAppCustAlias exACA = new ExAppCustAlias(); exACA.CopyFromAppCustAlias(aca); exACA.APP_USER = item.APP_USER; exACA.DEFAULT_FLAG = item.DEFAULT_FLAG; exACAList.Add(exACA); } return(exACAList); }
public void CopyFromAppCustAlias(APP_CUST_ALIAS aca) { this.ALIAS_NAME = aca.ALIAS_NAME; this.DESCRIPTION = aca.DESCRIPTION; this.ACTIVEIND = aca.ACTIVEIND; }