/// <summary> /// GetListForClient /// Calls [usp_selectAll_Team_for_Client] /// </summary> public static List <Team> GetListForClient(System.Int32?clientId) { List <TeamDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Team.GetListForClient(clientId); if (lstDetails == null) { return(new List <Team>()); } else { List <Team> lst = new List <Team>(); foreach (TeamDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Team obj = new Rebound.GlobalTrader.BLL.Team(); obj.TeamId = objDetails.TeamId; obj.ClientNo = objDetails.ClientNo; obj.TeamName = objDetails.TeamName; obj.Notes = objDetails.Notes; obj.UpdatedBy = objDetails.UpdatedBy; obj.DLUP = objDetails.DLUP; obj.NumberOfMembers = objDetails.NumberOfMembers; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }
/// <summary> /// DropDownForClient /// Calls [usp_dropdown_Team_for_Client] /// </summary> public static List <Team> DropDownForClient(System.Int32?clientId) { List <TeamDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.Team.DropDownForClient(clientId); if (lstDetails == null) { return(new List <Team>()); } else { List <Team> lst = new List <Team>(); foreach (TeamDetails objDetails in lstDetails) { Rebound.GlobalTrader.BLL.Team obj = new Rebound.GlobalTrader.BLL.Team(); obj.TeamId = objDetails.TeamId; obj.TeamName = objDetails.TeamName; lst.Add(obj); obj = null; } lstDetails = null; return(lst); } }