This commit is contained in:
@@ -35,6 +35,14 @@ namespace AyaNova.Models
|
||||
[NotMapped, JsonIgnore]
|
||||
public AyaType AyaType { get => AyaType.User; }
|
||||
|
||||
public bool IsOutsideUser
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.UserType == UserType.Customer || this.UserType == UserType.HeadOffice;
|
||||
}
|
||||
}
|
||||
|
||||
// [JsonIgnore]//hide from being returned (as null anyway) with User object in routes
|
||||
// public UserOptions UserOptions { get; set; }
|
||||
}//eoc
|
||||
@@ -114,6 +122,15 @@ namespace AyaNova.Models
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsOutsideUser
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.UserType == UserType.Customer || this.UserType == UserType.HeadOffice;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[NotMapped, JsonIgnore]
|
||||
public AyaType AyaType { get => AyaType.User; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user