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