public async Task <IHttpActionResult> GetUserCredentials() { LoginUser loginUser = new LoginUser(); try { IEnumerable <LoginUser.RegisteredUsers> registeredUsers = loginUser.GetRegisteredUsers(); if (registeredUsers.Count() != 0) { return(Ok(registeredUsers)); } else { return(NotFound()); } } catch (Exception ex) { Log.CreateLog(ex); } return(Ok()); }