Пример #1
0
        private HeatSheetEvent GetHeatSheetEventFromVSME(ViewHeatSheetEvent vsme)
        {
            Swimomatic.Entity.HeatSheetEvent HeatSheetEvent = new HeatSheetEvent();
            HeatSheetEvent.HeatSheetID = vsme.HeatSheetID;
            HeatSheetEvent.Distance = vsme.Distance;

            //get the SwimEvent
            SwimEvent swimEvent = BizMgr.GetSwimEventByAgeClassIDStrokeID(vsme.AgeClassID, vsme.StrokeID);
            HeatSheetEvent.SwimEventID = swimEvent.SwimEventID;

            return HeatSheetEvent;
        }
 public int SaveHeatSheetEvent(HeatSheetEvent heatSheetEvent)
 {
     heatSheetEvent.HeatSheetEventID = Ctx.HeatSheetEventManager.HeatSheetEventSave(heatSheetEvent);
     return heatSheetEvent.HeatSheetEventID;
 }