public Task AddOrUpdateTest(int?id, AddOrUpdateTestInput input) { var entity = ObjectMapper.Map <Test>(input); _testManager.InsertTest(entity); return(Task.CompletedTask); }
public async Task <IActionResult> UpdateTest(int id, [FromBody] AddOrUpdateTestInput input) { await _testService.AddOrUpdateTest(id, input); return(Ok(ResponseBody.From("修改成功"))); }
public async Task <IActionResult> AddTest([FromBody] AddOrUpdateTestInput input) { await _testService.AddOrUpdateTest(null, input); return(Ok(ResponseBody.From("保存成功"))); }
public Task AddOrUpdateTest(int?id, AddOrUpdateTestInput input) { var entity = ObjectMapper.Map <Test>(input); throw new System.NotImplementedException(); }