Exemplo n.º 1
0
        public ActionResult Add(Trip tripId)
        {
            if (null == tripId)
            {
                return new NoSuchTripResult();
            }

            AddMinMaxDates(tripId);
            ViewBag.Title = String.Format("Edit GEN-6 event for trip {0}", tripId.ToString());
            ViewBag.TripNumber = tripId.SpcTripNumber ?? "This Trip";
            var pevent = new PollutionEvent();
            pevent.Trip = tripId;
            return View(pevent);
        }
Exemplo n.º 2
0
        public virtual void AddPollutionEvent(PollutionEvent pevent)
        {
            if (null == pevent)
                return;

            pevent.Trip = this;
            this.PollutionEvents.Add(pevent);
        }