public async Task <IActionResult> CheckPassword([FromBody] string password) { if (string.IsNullOrWhiteSpace(password)) { return(BadRequest()); } var result = await _korisnikService.CheckPassword(password); return(WithStatusCode(result.StatusCode, result.Message)); }