async public Task <ActionResult> AuthenticateUser(string userName, string password) { var response = await _userDetailRepository.AuthenticateUser(userName, password); if (response == null) { return(BadRequest(response)); } else { return(Ok(response)); } }