﻿module starter.ticket {
    'use strict';

    export class TicketServices implements ITicketService {

        static $inject = ['starter.shared.QueryRemoteDataService'];
        constructor(private queryRemoteSvc: starter.shared.QueryRemoteDataService) {
        }

        public BuyTicket(req: BuyTicketRequest): ng.IPromise<BuyTicketRespond> {
            var requestUrl = "BuyTicket/BuyTicket?userId=" + req.UserId + "&amount=" + req.Amount;
            return this.queryRemoteSvc.RemoteQuery<BuyTicketRespond>(requestUrl);
        };
    }

    angular
        .module('starter.ticket')
        .service('starter.ticket.TicketServices', TicketServices);
}
﻿module starter.ticket {
    'use strict';

    export class TicketServices implements ITicketService {

        static $inject = ['starter.shared.QueryRemoteDataService'];
        constructor(private queryRemoteSvc: starter.shared.QueryRemoteDataService) {
        }

        public BuyTicket(req: BuyTicketRequest): ng.IPromise<BuyTicketRespond> {
            var requestUrl = "BuyTicket/BuyTicket?userId=" + req.UserId + "&amount=" + req.Amount;
            return this.queryRemoteSvc.RemoteQuery<BuyTicketRespond>(requestUrl);
        };
    }

    export class BuyTicketManagerService {

    }

    angular
        .module('starter.ticket')
        .service('starter.ticket.TicketServices', TicketServices)
        .service('starter.ticket.BuyTicketManagerService', BuyTicketManagerService);
}
Add BuyTicketManagerService for validate buy ticket.
Add BuyTicketManagerService for validate buy ticket.

Signed-off-by: Sakul Jaruthanaset <17b4bfe9c570ddd7d4345ec4b3617835712513c0@perfenterprise.com>
