public async Task <IActionResult> ChangeBlock(long id, bool block) { var result = await _service.ChangeBlock(User.GetId(), User.GetRole(), id, block); if (!result.Ok) { return(Json(result.Errors)); } return(RedirectToAction("Update", new { id })); }