Exemplo n.º 1
0
        public RepeatingGigViewModel(RepeatingGig gig)
        {
            Id = gig.Id;
            BandNames = gig.BandNames.Select(x => x.Value.SafeTrim()).ToArray();
            Venue = gig.Venue;
            StartTime = gig.StartTime;
            Price = gig.Price;
            MoreInfo = gig.MoreInfo;
            GigTitle = gig.GigTitle;
            Source = gig.Source;

            SequenceStartFrom = gig.SequenceStartFrom;
            SequenceEndOn = gig.SequenceEndOn;

            Mondays = gig.Mondays;
            Tuesdays = gig.Tuesdays;
            Wednesdays = gig.Wednesdays;
            Thursdays = gig.Thursdays;
            Fridays = gig.Fridays;
            Saturdays = gig.Saturdays;
            Sundays = gig.Sundays;

            Created = gig.Created;
            Edited = gig.Edited;
        }
Exemplo n.º 2
0
 public RepeatingGig SaveRepeating(RepeatingGig gig)
 {
     session.Store(gig);
     session.SaveChanges();
     return gig;
 }