Exemple #1
0
        public static ISocialEvent MappFrom(SocialEventDTO socialEvent)
        {
            SocialEventModel socialEventModel = new SocialEventModel();

            SetCommonDboProperties(socialEventModel, socialEvent);
            socialEventModel.Name            = socialEvent.Name;
            socialEventModel.Location        = socialEvent.Location;
            socialEventModel.Fee             = socialEvent.Fee;
            socialEventModel.Description     = socialEvent.Description;
            socialEventModel.StartDate       = socialEvent.StartDate;
            socialEventModel.EndDate         = socialEvent.EndDate;
            socialEventModel.MaxParticipants = socialEvent.MaxParticipants;
            socialEventModel.Regatta         = MappFrom(socialEvent.Regatta);
            return(socialEventModel);
        }
 public SocialEventRoleHandler(SocialEventDTO socialEvent) : base(socialEvent)
 {
     _socialEvent = socialEvent;
 }