// GET: api/CheckUserFirstTime async public Task<IHttpActionResult> Get(string username, string password) { //ConfigurationValues.GroveHillConnection = "Server=23.25.228.34;Database=apatientconnects;Uid=root;Pwd=root;"; ApplicationUser user = await UserManager.FindAsync(username,password); if (user == null) { //context.SetError("invalid_grant", "The user name or password is incorrect."); return Ok("UserNameInvalid"); } PatientsData patients = new PatientsData(); bool firstLogin = patients.IsPatientFirstLogin(username); if (firstLogin) { return Ok("GreaterThanFirst"); } else { return Ok("First"); } }