public List <AcademicAdvisingMessage> GetAdvisingMessages(string studentId, bool isInstructor)
        {
            var errors = new List <string>();
            IAcademicAdvisingRepository advising = new AcademicAdvisingRepository();

            return(new AcademicAdvisingService(advising).GetAdvisingMessages(studentId, isInstructor, ref errors));
        }
        public void UpdateAdvisingMessage(AcademicAdvisingMessage message)
        {
            var errors = new List <string>();
            IAcademicAdvisingRepository advising = new AcademicAdvisingRepository();

            new AcademicAdvisingService(advising).UpdateAdvisingMessage(message, ref errors);
        }
        public AcademicAdvisingMessage GetAdvisingMessageDetail(int id)
        {
            var errors = new List <string>();
            IAcademicAdvisingRepository advising = new AcademicAdvisingRepository();

            return(new AcademicAdvisingService(advising).GetAdvisingMessageDetail(id, ref errors));
        }
        public string DeleteAdvisingMessage(int id)
        {
            var errors = new List <string>();
            IAcademicAdvisingRepository advising = new AcademicAdvisingRepository();

            new AcademicAdvisingService(advising).DeleteAdvisingMessage(id, ref errors);

            if (errors.Count == 0)
            {
                return("ok");
            }

            return("error");
        }
        public string InsertAdvisingMessage(AcademicAdvisingMessage message)
        {
            var errors = new List <string>();
            IAcademicAdvisingRepository advising = new AcademicAdvisingRepository();

            new AcademicAdvisingService(advising).InsertAdvisingMessage(message, ref errors);

            if (errors.Count == 0)
            {
                return("ok");
            }

            return("error");
        }