Files
activestep/Step.Model/DTOModels/DTORuntimeFunctionAccessModel.cs
2020-09-12 16:11:43 +02:00

30 lines
758 B
C#

namespace Step.Model.DTOModels
{
public class DTORuntimeFunctionalityModel
{
public int Id { get; set; }
public string Name { get; set; }
public string Area { get; set; }
public bool Enabled { get; set; }
public override bool Equals(object obj)
{
// Object is not a DTORuntimeFunctionalityModel instance
if (!(obj is DTORuntimeFunctionalityModel item))
return false;
if (Id == item.Id && Enabled == item.Enabled) // Name Area don't change runtime
return true;
else
return false;
}
public override int GetHashCode()
{
return base.GetHashCode();
}
}
}