public async Task TestAddMissionAsync()
        {
            var missionService = new MissionService();
            var mission        = new Mission
            {
                MissionName = "高数代课"
            };
            var user = new User
            {
                Id = 1
            };
            await missionService.AddAsync(mission, user);

            Assert.AreEqual(1, 1);
        }
        public async Task <IActionResult> InsertMission([FromBody] Missions entity)
        {
            ExceptionModel oResult = new ExceptionModel();

            try
            {
                bool isSuccess = await _svc.AddAsync(entity, "0");

                if (isSuccess)
                {
                    oResult.ErrorCode = (int)ExceptionType.SUCCESS;
                    oResult.ErrorDesc = ExceptionType.SUCCESS.ToString();
                }
            }
            catch (Exception ex)
            {
                oResult.ErrorCode = (int)ExceptionType.CATCH;
                oResult.ErrorDesc = ex.ToString();
            }
            return(Ok(oResult));
        }