Пример #1
0
        public Task AddOrUpdateTest(int?id, AddOrUpdateTestInput input)
        {
            var entity = ObjectMapper.Map <Test>(input);

            _testManager.InsertTest(entity);
            return(Task.CompletedTask);
        }
Пример #2
0
        public async Task <IActionResult> UpdateTest(int id, [FromBody] AddOrUpdateTestInput input)
        {
            await _testService.AddOrUpdateTest(id, input);

            return(Ok(ResponseBody.From("修改成功")));
        }
Пример #3
0
        public async Task <IActionResult> AddTest([FromBody] AddOrUpdateTestInput input)
        {
            await _testService.AddOrUpdateTest(null, input);

            return(Ok(ResponseBody.From("保存成功")));
        }
Пример #4
0
        public Task AddOrUpdateTest(int?id, AddOrUpdateTestInput input)
        {
            var entity = ObjectMapper.Map <Test>(input);

            throw new System.NotImplementedException();
        }