public string[] GetMatchingFranchiseeUserList(string prefixText, int count, string contextKey) { List <string> items = new List <string>(); FranchiseeDAL franchiseeDal = new FranchiseeDAL(); Falcon.Entity.Franchisee.EFranchiseeFranchiseeUser[] objFfu = franchiseeDal.GetMatchingFranchiseeUserList(prefixText, 1, Convert.ToInt32(contextKey)).ToArray(); foreach (Falcon.Entity.Franchisee.EFranchiseeFranchiseeUser objEffu in objFfu) { items.Add(objEffu.FranchiseeUser.User.FirstName + " [ID:" + objEffu.FranchiseeFranchiseeUserID + "]"); } return(items.ToArray()); }
public string[] GetMatchingFranchiseeUserListSalesRep(string prefixText, int count, string contextKey) { List <string> items = new List <string>(); //HealthYes.Web.UI.FranchiseeFranchiseeUserService.FranchiseeFranchiseeUserService objFFUService = new HealthYes.Web.UI.FranchiseeFranchiseeUserService.FranchiseeFranchiseeUserService(); // remove service references FranchiseeDAL franchiseeDAL = new FranchiseeDAL(); //HealthYes.Web.UI.FranchiseeFranchiseeUserService.EFranchiseeFranchiseeUser[] objFFU = objFFUService.GetMatchingFranchiseeUserListSalesRep(prefixText, Convert.ToInt32(contextKey), true); List <Falcon.Entity.Franchisee.EFranchiseeFranchiseeUser> objFFU = franchiseeDAL.GetMatchingFranchiseeUserList(prefixText, 0, Convert.ToInt32(contextKey)); foreach (Falcon.Entity.Franchisee.EFranchiseeFranchiseeUser objEFFU in objFFU) { items.Add(objEFFU.FranchiseeUser.User.FirstName + " [ID:" + objEFFU.FranchiseeFranchiseeUserID + "]"); } return(items.ToArray()); }