private void Load(MemberMessage message) { Message = message; message.Text = "Sample text"; DayOffRequestsVM = new DayOffRequestsViewModel(Context, message); RoleRequestsVM = new RoleRequestsViewModel(Context, message); }
private void LoadUserInfo() { DayOffRequestsVM = new DayOffRequestsViewModel(Context, _member); RoleRequestsVM = new RoleRequestsViewModel(Context, _member); RoleAssignments = ( from assign in Context.RoleAssignments where assign.MemberId == _member.Id select assign).ToList(); }