public void CreateSubscription(SubscriptionDto pSubscriptionDto) { _paraContext.Subscriptions.Add(new Models.Subscription { Year = pSubscriptionDto.Id, IsActive = true, SubscriptionAmount = pSubscriptionDto.Amount }); _paraContext.SaveChanges(); }
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(); }
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(); }
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(); }