예제 #1
0
        public static Customer GetUser(HttpContextBase httpContext, IUserRepository users)
        {
            var authCookie = httpContext.Request.Cookies["__AUTH"];
            if (authCookie != null)
            {
                var user = users.GetCustomerByUniqueidentifier(authCookie.Value);

                return user;
            }

            return null;
        }