This commit is contained in:
2020-12-07 17:51:52 +00:00
parent f25706b02e
commit e6e77f121d
3 changed files with 87 additions and 12 deletions

View File

@@ -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; }