예제 #1
0
        public int?GetSchoolIdForCurrentUser()
        {
            int?schoolId;
            var headerSchoolId = HttpContext?.Request.Headers["SchoolId"];

            if (String.IsNullOrEmpty(headerSchoolId))
            {
                schoolId = userIdentity.GetSchoolId().Result;
            }
            else
            {
                schoolId = Convert.ToInt32(headerSchoolId);
            }
            return(schoolId);
        }