Example #1
0
 public void AddTicketStatus(ApiTicketStatusResponseModel item)
 {
     if (!this.TicketStatus.Any(x => x.Id == item.Id))
     {
         this.TicketStatus.Add(item);
     }
 }
Example #2
0
        public virtual ApiTicketStatusRequestModel MapResponseToRequest(
            ApiTicketStatusResponseModel response)
        {
            var request = new ApiTicketStatusRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
Example #3
0
        public virtual ApiTicketStatusResponseModel MapRequestToResponse(
            int id,
            ApiTicketStatusRequestModel request)
        {
            var response = new ApiTicketStatusResponseModel();

            response.SetProperties(id,
                                   request.Name);
            return(response);
        }