public ActionResult SaveHeatSheet(ViewHeatSheet viewHeatSheet)
        {
            int heatSheetID = BizMgr.SaveHeatSheet(viewHeatSheet.PoolConfigID, viewHeatSheet.SwimMeetID);

            Dictionary<int, string> heatSheetTeams = new Dictionary<int, string>();
            foreach (ViewHeatSheetTeam hst in viewHeatSheet.HeatSheetTeams)
            {
                if (!heatSheetTeams.Keys.Contains(hst.TeamSeasonID))
                {
                    heatSheetTeams.Add(hst.TeamSeasonID, hst.LaneNumber.ToString());
                }
                else
                {
                    heatSheetTeams[hst.TeamSeasonID] += "|" + hst.LaneNumber.ToString();
                }
            }

            HeatSheetTeam heatSheetTeam = null;
            foreach (KeyValuePair<int, string> item in heatSheetTeams)
            {
                heatSheetTeam = new HeatSheetTeam();
                heatSheetTeam.HeatSheetID = heatSheetID;
                heatSheetTeam.TeamSeasonID = item.Key;
                heatSheetTeam.Lanes = item.Value;
                BizMgr.SaveHeatSheetTeam(heatSheetTeam);
            }
            ViewBag.SwimMeetID = viewHeatSheet.SwimMeetID;
            return PartialView("_HeatSheets", GetHeatSheets(viewHeatSheet.SwimMeetID));
        }
 public int SaveHeatSheetTeam(HeatSheetTeam heatSheetTeam)
 {
     int heatSheetTeamID = Ctx.HeatSheetTeamManager.HeatSheetTeamSave(heatSheetTeam);
     return heatSheetTeamID;
 }