public void UpdateFromResponse(UniteLinkResponse response) { FkUniteServerId = response.FkUniteServerId; LinkTableName = response.LinkTableName; FkColumnServerId = response.FkColumnServerId; UniteValue = response.UniteValue; IsActif = response.IsActif; EditDate = response.EditDate; }
public UniteLink(UniteLinkResponse response) { if (!string.IsNullOrWhiteSpace(response.K) && Guid.TryParse(response.K, out Guid id)) { Id = id; } else { Id = Guid.NewGuid(); } AddDate = response.AddDate; ServerId = response.ServerId; FkUniteServerId = response.FkUniteServerId; LinkTableName = response.LinkTableName; FkColumnServerId = response.FkColumnServerId; UniteValue = response.UniteValue; IsActif = response.IsActif; EditDate = response.EditDate; }