Ejemplo n.º 1
0
        public void CreateSubscription(SubscriptionDto pSubscriptionDto)
        {
            _paraContext.Subscriptions.Add(new Models.Subscription
            {
                Year               = pSubscriptionDto.Id,
                IsActive           = true,
                SubscriptionAmount = pSubscriptionDto.Amount
            });

            _paraContext.SaveChanges();
        }
Ejemplo n.º 2
0
 public void CreateParaglider(ParagliderDto pParagliderDto)
 {
     _paraContext.Paragliders.Add(new Models.Paraglider
     {
         Name = pParagliderDto.Name,
         CommissioningDate = pParagliderDto.CommissioningDate,
         LastRevisionDate  = pParagliderDto.LastRevision,
         IsActive          = true,
         ParagliderModelID = pParagliderDto.ParagliderModelId
     });
     _paraContext.SaveChanges();
 }
Ejemplo n.º 3
0
 public void CreateTraineeship(TraineeShipDto pTraineeshipDto)
 {
     _paraContext.Traineeships.Add(new Models.Traineeship
     {
         StartDate = pTraineeshipDto.TraineeShipStartDate,
         EndDate   = pTraineeshipDto.TraineeShipEndDate,
         LicenseID = pTraineeshipDto.LicenseId,
         Price     = pTraineeshipDto.TraineeShipPrice,
         IsActive  = true
     });
     _paraContext.SaveChanges();
 }
Ejemplo n.º 4
0
 public void CreateSite(SiteDto pSiteDto)
 {
     _paraContext.Sites.Add(new Models.Site
     {
         Name              = pSiteDto.Name,
         Orientation       = pSiteDto.Orientation,
         AltitudeTakeOff   = pSiteDto.AltitudeTakeOff,
         SiteType          = (Enm_SiteType)(int)pSiteDto.SiteType,
         SiteGeoCoordinate = pSiteDto.SiteGeoCoordinate,
         ApproachManeuver  = pSiteDto.ApproachManeuver,
         LevelID           = pSiteDto.Level.ID,
         IsActive          = true
     });
     _paraContext.SaveChanges();
 }