public async Task <ResponseResult <int> > Post(FunctionDto dto) { var item = await _functionService.AddOrUpdate <FunctionDto, int>(dto); var result = new ResponseResult <int>(item.Id); return(result); }
public async Task <IActionResult> Test() { await _userService.TestMutipleTrans(new UserDto { Name = "test" }); var user = await _userService.Get <UserDto>(u => u.Name == "test"); await _functionService.AddOrUpdate <FunctionDto, int>(new FunctionDto { Name = "testfunc", Code = "5555" }); return(Ok("ok")); }