私は3つのプロジェクトを含むソリューションを作成しました。
//Project Name: ClientProject
public class UserDetails
{
public static int ID { get; set; }
public static string Name { get; set; }
public static string Email { get; set; }
}
この上記のクラスは一度設定する必要があります。ユーザーがログインした後、ソリューション全体でこれらの詳細にアクセスしたいと考えています。
Administration、SalesInfo プロジェクトと同様です。
//Project Name: Administration
public class Admin
{
public static UserDetails Details
{
//Here i would like to return UserDetails
get;
}
public static int DepartmentID { get; set; }
public static string Phone { get; set; }
public static string Head { get; set; }
}
//Project Name: SalesInfo
public class Sales
{
public static UserDetails Details
{
//Here i would like to return UserDetails
get;
}
public static DateTime Date { get; set; }
public static string Item { get; set; }
public static int Price { get; set; }
}
回答、コメント、または提案をいただければ幸いです