예제 #1
0
        public JsonResult Course()
        {
            var  list     = this._ClassBAL.personRoleGroups(CurrentUser.NameIdentifierInt64);
            long PersonId = 0;

            if (list.Count == 1 && list[0].PrimaryGroupName == "Trainer")
            {
                PersonId = CurrentUser.NameIdentifierInt64;
            }
            return(Json(_objIDDLBAL.Courses_GetAllByCultureBAL(CurrentCulture, CurrentUser.CompanyID, PersonId), JsonRequestBehavior.AllowGet));
        }
예제 #2
0
 public JsonResult Course()
 {
     return(Json(_objIDDLBAL.Courses_GetAllByCultureBAL(CurrentCulture, CurrentUser.CompanyID), JsonRequestBehavior.AllowGet));
 }