public Models.Tutorial.TeacherTutorialModel GetTeacherTutorialByID(int TeacherTutorialID)
        {
            BusinessLogic.Tutorial.TeacherTutorialManager TeacherTutorialManager = new BusinessLogic.Tutorial.TeacherTutorialManager();
            BusinessEntity.Tutorial.TeacherTutorialEntity TeacherTutorial        = TeacherTutorialManager.GetTeacherTutorialByID(TeacherTutorialID);

            return(new Models.Tutorial.TeacherTutorialModel(TeacherTutorial));
        }
        public List <Models.Tutorial.TeacherTutorialModel> GetTeacherTutorials()
        {
            BusinessLogic.Tutorial.TeacherTutorialManager TeacherTutorialManager = new BusinessLogic.Tutorial.TeacherTutorialManager();

            List <BusinessEntity.Tutorial.TeacherTutorialEntity> TeacherTutorials      = TeacherTutorialManager.GetTeacherTutorials();
            List <Models.Tutorial.TeacherTutorialModel>          TeacherTutorialModels = new List <Models.Tutorial.TeacherTutorialModel>();

            foreach (BusinessEntity.Tutorial.TeacherTutorialEntity TeacherTutorial in TeacherTutorials)
            {
                TeacherTutorialModels.Add(new Models.Tutorial.TeacherTutorialModel(TeacherTutorial));
            }

            return(TeacherTutorialModels);
        }
        public BusinessEntity.Result DeleteTeacherTutorial(Models.Tutorial.TeacherTutorialModel TeacherTutorial)
        {
            BusinessEntity.Result result = new BusinessEntity.Result();
            try
            {
                BusinessLogic.Tutorial.TeacherTutorialManager TeacherTutorialManager = new BusinessLogic.Tutorial.TeacherTutorialManager();
                result = TeacherTutorialManager.DeleteTeacherTutorial(TeacherTutorial.MapToEntity <BusinessEntity.Tutorial.TeacherTutorialEntity>());

                return(result);
            }
            catch (Exception ex)
            {
                result.Status  = false;
                result.Message = "TeacherTutorial delete failed.";

                return(result);
            }
        }