public void AddColumnSameAsFKTable(ApiColumnSameAsFKTableClientResponseModel item) { if (!this.ColumnSameAsFKTables.Any(x => x.Id == item.Id)) { this.ColumnSameAsFKTables.Add(item); } }
public virtual ApiColumnSameAsFKTableClientRequestModel MapClientResponseToRequest( ApiColumnSameAsFKTableClientResponseModel response) { var request = new ApiColumnSameAsFKTableClientRequestModel(); request.SetProperties( response.Person, response.PersonId); return(request); }
public virtual ApiColumnSameAsFKTableClientResponseModel MapClientRequestToResponse( int id, ApiColumnSameAsFKTableClientRequestModel request) { var response = new ApiColumnSameAsFKTableClientResponseModel(); response.SetProperties(id, request.Person, request.PersonId); return(response); }