Пример #1
0
        public MResultModel AddClassInfo(EditClassModel inputM)
        {
            MResultModel resM;

            try
            {
                _classListBLL.AddClassInfo(inputM);
                resM = MResultModel.GetSuccessResultM("添加成功");
            }
            catch (ArgumentNullException ex)
            {
                resM = MResultModel.GetFailResultM(ex.Message);
            }
            catch (ArgumentException ex)
            {
                resM = MResultModel.GetFailResultM(ex.Message);
            }
            return(resM);
        }