public static MyRequestContext SetUserInfo(this MyRequestContext context, HttpRequest httpRequest) { var theGroup = context.GetOrCreate(context.GetGroupName_UserInfos()); //todo return(context); }
public static MyUserInfo GetUserInfo(this MyRequestContext context) { var info = new MyUserInfo(); var theGroup = context.GetOrCreate(context.GetGroupName_UserInfos()); theGroup.Items.SetProperties(info); return(info); }