Example #1
0
 public void AddTransactionStatus(ApiTransactionStatusClientResponseModel item)
 {
     if (!this.TransactionStatus.Any(x => x.Id == item.Id))
     {
         this.TransactionStatus.Add(item);
     }
 }
Example #2
0
        public virtual ApiTransactionStatusClientRequestModel MapClientResponseToRequest(
            ApiTransactionStatusClientResponseModel response)
        {
            var request = new ApiTransactionStatusClientRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
Example #3
0
        public virtual ApiTransactionStatusClientResponseModel MapClientRequestToResponse(
            int id,
            ApiTransactionStatusClientRequestModel request)
        {
            var response = new ApiTransactionStatusClientResponseModel();

            response.SetProperties(id,
                                   request.Name);
            return(response);
        }
 public void SetTransactionStatusIdNavigation(ApiTransactionStatusClientResponseModel value)
 {
     this.TransactionStatusIdNavigation = value;
 }