public async Task <IActionResult> Lock(int id, KorisnickiNalogLockUpsertRequest request) { var result = await _korisnikService.ToggleLock(id, true, request.Until); return(!result.Succeeded ? WithStatusCode(result.StatusCode, result.Message) : Ok(result.Data)); }