Пример #1
0
 public void AddTicket(ApiTicketClientResponseModel item)
 {
     if (!this.Tickets.Any(x => x.Id == item.Id))
     {
         this.Tickets.Add(item);
     }
 }
        public virtual ApiTicketClientRequestModel MapClientResponseToRequest(
            ApiTicketClientResponseModel response)
        {
            var request = new ApiTicketClientRequestModel();

            request.SetProperties(
                response.PublicId,
                response.TicketStatusId);
            return(request);
        }
        public virtual ApiTicketClientResponseModel MapClientRequestToResponse(
            int id,
            ApiTicketClientRequestModel request)
        {
            var response = new ApiTicketClientResponseModel();

            response.SetProperties(id,
                                   request.PublicId,
                                   request.TicketStatusId);
            return(response);
        }
Пример #4
0
 public void SetTicketIdNavigation(ApiTicketClientResponseModel value)
 {
     this.TicketIdNavigation = value;
 }