public ActionResult Auth(Auth authData) { UserResponse userResp = client.Auth(authData); if (userResp.status == (int)GlobalVariables.STATUSES.OK) { GlobalVariables.currentUser = userResp.user; } string authResult = userResp.message; if (authResult.Contains("Success")) { return(RedirectToAction("Index")); } else { ViewBag.Msg = authResult; return(View()); } }