public ActionResult Create(User u) { using (AuthServiceClient client = _serviceManager.GetAuthServiceClient()) { try { client.AddUser(u); return(RedirectToAction("Login", new { username = u.Email, password = u.Password })); } catch (Exception ex) { //bad practice.. what are you doing! ViewBag.Message = ex.Message; return(View()); } } }