示例#1
0
        /// <summary>
        /// Get the current organization from cookie, lookup all other available organizations from database.
        /// </summary>
        /// <param name="httpContext"></param>
        /// <returns></returns>
        public SimpleOrganization GetCurrentOrganization(HttpContext httpContext)
        {
            var currentOrganizationId = _cookieHelper.GetCurrentOrganizationId(httpContext);

            return(GetCurrentOrganization(currentOrganizationId));
        }