public static UpdateTrackTarget CreateUpdateTrackTarget(TrackTarget trackTarget)
 {
     var updateTrackTarget = new UpdateTrackTarget();
     updateTrackTarget.ID = trackTarget.ID;
     updateTrackTarget.NiceName = trackTarget.NiceName;
     updateTrackTarget.PlanId = trackTarget.PlanId;
     return updateTrackTarget;
 }
 public TrackTarget Create()
 {
     var trackTarget = new TrackTarget();
     trackTarget.ID = Guid.NewGuid();
     trackTarget.NiceName = NiceName;
     trackTarget.PlanId = PlanId;
     trackTarget.CreateTime = DateTime.Now;
     return trackTarget;
 }
        public static ShowTrackTarget CreateShowTrackTarget(TrackTarget arg, List<TrackPlan> trackPlans)
        {
            var showTrackTarget = new ShowTrackTarget();
            showTrackTarget.ID = arg.ID;
            showTrackTarget.NiceName = arg.NiceName;
            showTrackTarget.PlanId = arg.PlanId;
            var trackPlan = trackPlans.FirstOrDefault(x => x.ID == arg.PlanId);
            if (!trackPlan.Null())
            {
                showTrackTarget.PlanName = trackPlan.Name;
            }
            return showTrackTarget;


        }
 public TrackTarget Update(TrackTarget trackTarget)
 {
     trackTarget.NiceName = NiceName;
     return trackTarget;
 }