public AjaxResult UpdateTopicGrammar(List <TopicGrammar> topicGrammars)
        {
            var _ajax = new AjaxResult();

            try
            {
                using (TopicGrammarBL topicGrammarBL = new TopicGrammarBL())
                {
                    _ajax.Data = topicGrammarBL.UpdateTopicGrammar(topicGrammars);
                }
            }
            catch (Exception ex)
            {
                _ajax.Data    = ex;
                _ajax.Message = ResourceNotification.Error;
                _ajax.Success = false;
            }
            return(_ajax);
        }
        public AjaxResult DeleteTopicGrammar(int[] arrID)
        {
            var _ajax = new AjaxResult();

            try
            {
                using (TopicGrammarBL topicGrammarBL = new TopicGrammarBL())
                {
                    _ajax.Data = topicGrammarBL.DeleteTopicGrammar(arrID);
                }
            }
            catch (Exception ex)
            {
                _ajax.Data    = ex;
                _ajax.Message = ResourceNotification.Error;
                _ajax.Success = false;
            }
            return(_ajax);
        }