private void DoBind() { List <SubLimitOfLiabilityMaster> limits = null; limits = SubLimitOfLiabilityManager.GetAll(clientID); gvSublimit.DataSource = limits; gvSublimit.DataBind(); }
private void copySubLimitOfLiability(int sourceClientID, int targetClientID) { List <SubLimitOfLiabilityMaster> sublimits = null; sublimits = SubLimitOfLiabilityManager.GetAll(sourceClientID); foreach (SubLimitOfLiabilityMaster sublimit in sublimits) { SubLimitOfLiabilityMaster newSublimit = new SubLimitOfLiabilityMaster(); newSublimit.ClientId = targetClientID; newSublimit.Description = sublimit.Description; newSublimit.IsActive = sublimit.IsActive; SubLimitOfLiabilityManager.Save(sublimit); } }