public void UpdateFromResponse(UniteItemResponse response) { UniteServerId = response.UniteServerId; Value = response.Value; IsActif = response.IsActif; EditDate = response.EditDate; }
public UniteItem(UniteItemResponse 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; UniteServerId = response.UniteServerId; Value = response.Value; IsActif = response.IsActif; EditDate = response.EditDate; }