Last active
July 4, 2023 15:27
-
-
Save kemsky/fc569c55c37d9f85deb8cd5ebc11b6ca to your computer and use it in GitHub Desktop.
[Medium] Entities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class User | |
{ | |
public int Id { get; set; } | |
public string Name { get; set; } | |
public bool Active { get; set; } | |
public Subscription Subscription { get; set; } | |
public List<Department> Departments { get; set; } | |
} | |
public class Department | |
{ | |
public int Id { get; set; } | |
public string Name { get; set; } | |
public bool Active { get; set; } | |
} | |
public enum Subscription | |
{ | |
Subscribed, | |
Unsubscribed | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment