Пример #1
0
 public void AddSaleTickets(ApiSaleTicketsClientResponseModel item)
 {
     if (!this.SaleTickets.Any(x => x.Id == item.Id))
     {
         this.SaleTickets.Add(item);
     }
 }
Пример #2
0
        public virtual ApiSaleTicketsClientRequestModel MapClientResponseToRequest(
            ApiSaleTicketsClientResponseModel response)
        {
            var request = new ApiSaleTicketsClientRequestModel();

            request.SetProperties(
                response.SaleId,
                response.TicketId);
            return(request);
        }
Пример #3
0
        public virtual ApiSaleTicketsClientResponseModel MapClientRequestToResponse(
            int id,
            ApiSaleTicketsClientRequestModel request)
        {
            var response = new ApiSaleTicketsClientResponseModel();

            response.SetProperties(id,
                                   request.SaleId,
                                   request.TicketId);
            return(response);
        }