24 lines
625 B
C#
Raw Normal View History

using ServiceStationDataModels.Models;
2024-04-30 01:41:35 +03:00
using System.ComponentModel;
namespace ServiceStationContracts.ViewModels
{
2024-08-23 19:44:26 +04:00
public class ClientViewModel : IClientModel, IEquatable<ClientViewModel>
2024-04-30 01:41:35 +03:00
{
2024-08-10 18:43:15 +04:00
public int Id { get; set; }
[DisplayName("ФИО")]
public string FIO { get; set; } = string.Empty;
2024-08-23 19:44:26 +04:00
public bool Equals(ClientViewModel? other) {
if (other is null) {
return false;
}
return this.Id == other.Id && this.FIO == other.FIO;
}
public override bool Equals(object obj) => Equals(obj as ClientViewModel);
public override int GetHashCode() => (Id, FIO).GetHashCode();
2024-08-10 18:43:15 +04:00
}
2024-04-30 01:41:35 +03:00
}