public ActionResult CreateInstructorAccount(int InstructorID)
        {
            var instructor = InsBO.GetInstructorByID(InstructorID);

            if (instructor.User == null)
            {
                var user = AccBO.CreateUser(instructor.Fullname);
                user.RoleID     = 4;
                instructor.User = user;
                InsBO.UpdateExist(instructor);
            }
            return(RedirectToAction("InstructorAccountList", "Admin"));
        }
        public ActionResult SessionReport(int InstructorID, int SelectedMonth, int SelectedYear)
        {
            InstructorBusiness InsBO = new InstructorBusiness();

            var      Ins          = InsBO.GetInstructorByID(InstructorID);
            DateTime SelectedTime = new DateTime(SelectedYear, SelectedMonth, 1);

            String FileName = InstructorID + "_" + Ins.Fullname.NonUnicode()
                              + "_" + SelectedTime.ToString("yyyy_MMMM") + ".xlsx";
            String FilePath = Server.MapPath("~/Content/Temp/" + FileName);

            InsBO.CreateSessionReport(InstructorID, SelectedTime, FilePath);

            return(File(FilePath, ExcelMimeType, FileName));
        }
        //
        // GET: /Default1/Details/5

        public ViewResult Details(int id)
        {
            Instructor instructor = InsBO.GetInstructorByID(id);

            return(View(instructor));
        }