public ActionResult ProfileEdit(PractitionerBaseViewModel vm, Guid accId) { PractitionerBaseViewModel result = new PractitionerBaseViewModel(); result.AccId = accId; PractitionerProcess process = new PractitionerProcess(); int returnValue = process.ProfileEdit(vm); if (returnValue != 0) { return(RedirectToAction("Profile", "Practitioner", result)); } else { return(Content(@"<body> <script type='text/javascript'> if(confirm('Profile is not updated successfully. Press Ok to try again.')){ window.history.back(); }; </script> </body> ")); } }