Example #1
0
 public void AddColumnSameAsFKTable(ApiColumnSameAsFKTableClientResponseModel item)
 {
     if (!this.ColumnSameAsFKTables.Any(x => x.Id == item.Id))
     {
         this.ColumnSameAsFKTables.Add(item);
     }
 }
Example #2
0
        public virtual ApiColumnSameAsFKTableClientRequestModel MapClientResponseToRequest(
            ApiColumnSameAsFKTableClientResponseModel response)
        {
            var request = new ApiColumnSameAsFKTableClientRequestModel();

            request.SetProperties(
                response.Person,
                response.PersonId);
            return(request);
        }
Example #3
0
        public virtual ApiColumnSameAsFKTableClientResponseModel MapClientRequestToResponse(
            int id,
            ApiColumnSameAsFKTableClientRequestModel request)
        {
            var response = new ApiColumnSameAsFKTableClientResponseModel();

            response.SetProperties(id,
                                   request.Person,
                                   request.PersonId);
            return(response);
        }