private async Task <IActionResult> AuthenticateUser(SubsonicRequest request) { var appUser = await SubsonicService.Authenticate(request).ConfigureAwait(false); if (!(appUser?.IsSuccess ?? false) || (appUser?.IsNotFoundResult ?? false)) { return(BuildResponse(request, appUser.Adapt <SubsonicOperationResult <Response> >())); } SubsonicUser = UserModelForUser(appUser.Data.SubsonicUser); return(null); }