/// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> GetByIDAsync(this ICursusInstantieService operations, int id, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetByIDWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='inschrijving'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> PostInschrijvingAsync(this ICursusInstantieService operations, Inschrijving inschrijving = default(Inschrijving), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PostInschrijvingWithHttpMessagesAsync(inschrijving, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='values'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> PostCursusInstantiesAsync(this ICursusInstantieService operations, IList <CursusInstantie> values = default(IList <CursusInstantie>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PostCursusInstantiesWithHttpMessagesAsync(values, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 public CursistInschrijvenController()
 {
     agent         = new CursusInstantieService();
     agent.BaseUri = new Uri("http://localhost:11380/");
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <Inschrijving> > GetInschrijvingenByCursusInstantieIdAsync(this ICursusInstantieService operations, int?id = default(int?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetInschrijvingenByCursusInstantieIdWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// </param>
 public static IList <Inschrijving> GetInschrijvingenByCursusInstantieId(this ICursusInstantieService operations, int?id = default(int?))
 {
     return(Task.Factory.StartNew(s => ((ICursusInstantieService)s).GetInschrijvingenByCursusInstantieIdAsync(id), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='values'>
 /// </param>
 public static int?PostCursusInstanties(this ICursusInstantieService operations, IList <CursusInstantie> values = default(IList <CursusInstantie>))
 {
     return(Task.Factory.StartNew(s => ((ICursusInstantieService)s).PostCursusInstantiesAsync(values), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <CursusInstantie> > GetCursusInstantiesVanEenBepaaldeWeekAsync(this ICursusInstantieService operations, DateModel model = default(DateModel), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetCursusInstantiesVanEenBepaaldeWeekWithHttpMessagesAsync(model, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='model'>
 /// </param>
 public static IList <CursusInstantie> GetCursusInstantiesVanEenBepaaldeWeek(this ICursusInstantieService operations, DateModel model = default(DateModel))
 {
     return(Task.Factory.StartNew(s => ((ICursusInstantieService)s).GetCursusInstantiesVanEenBepaaldeWeekAsync(model), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='inschrijving'>
 /// </param>
 public static int?PostInschrijving(this ICursusInstantieService operations, Inschrijving inschrijving = default(Inschrijving))
 {
     return(Task.Factory.StartNew(s => ((ICursusInstantieService)s).PostInschrijvingAsync(inschrijving), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemplo n.º 11
0
 public CursusInstantiesController()
 {
     _cursusInstantieService = cursusService;
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='value'>
 /// </param>
 public static object PostCursusen(this ICursusInstantieService operations, Cursus value = default(Cursus))
 {
     return(Task.Factory.StartNew(s => ((ICursusInstantieService)s).PostCursusenAsync(value), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// </param>
 public static object GetByID(this ICursusInstantieService operations, int id)
 {
     return(Task.Factory.StartNew(s => ((ICursusInstantieService)s).GetByIDAsync(id), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 public CursistenController()
 {
     _cursistSerivce         = cursistService;
     _cursusInstantieService = cursusInstantieService;
 }
Exemplo n.º 15
0
 public CursusUploadenController()
 {
     _agent         = new CursusInstantieService();
     _agent.BaseUri = new Uri(" http://localhost:11380/");
 }
 public FileUploadController()
 {
     _cursusInstantieService = cursusInstantieService;
 }