Example #1
0
 public void AddIncludedColumnTest(ApiIncludedColumnTestResponseModel item)
 {
     if (!this.IncludedColumnTests.Any(x => x.Id == item.Id))
     {
         this.IncludedColumnTests.Add(item);
     }
 }
        public virtual ApiIncludedColumnTestRequestModel MapResponseToRequest(
            ApiIncludedColumnTestResponseModel response)
        {
            var request = new ApiIncludedColumnTestRequestModel();

            request.SetProperties(
                response.Name,
                response.Name2);
            return(request);
        }
        public virtual ApiIncludedColumnTestResponseModel MapRequestToResponse(
            int id,
            ApiIncludedColumnTestRequestModel request)
        {
            var response = new ApiIncludedColumnTestResponseModel();

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