saving of space content in lists

This commit is contained in:
2020-05-03 16:21:37 +02:00
parent 3bbe19f407
commit 881bb20f22
8 changed files with 87 additions and 9 deletions
@@ -59,7 +59,6 @@ namespace zero.Web.Controllers
[ZeroAuthorize(Permissions.Settings.Users, PermissionsValue.Write)]
public async Task<IActionResult> Save([FromBody] UserRoleEditModel model)
{
var state = ModelState;
UserRole role = await Mapper.Map(model, await Api.GetById(model.Id));
return await As<UserRole, UserRoleEditModel>(await Api.Save(role));
}