first draft of change tokens works

This commit is contained in:
2020-04-22 15:46:35 +02:00
parent dfa84e4cc0
commit fb2aa4f9d7
22 changed files with 353 additions and 29 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ namespace zero.Web.Controllers
{
private IUserApi Api { get; set; }
public UsersController(IZeroConfiguration config, IUserApi api, IMapper mapper) : base(config, mapper)
public UsersController(IZeroConfiguration config, IUserApi api, IMapper mapper, IToken token) : base(config, mapper, token)
{
Api = api;
}
@@ -25,7 +25,7 @@ namespace zero.Web.Controllers
/// </summary>
public async Task<IActionResult> GetById([FromQuery] string id)
{
return Json<User, UserEditModel>(await Api.GetUserById(id));
return await As<User, UserEditModel>(await Api.GetUserById(id));
}