private RedirectToRouteResult EnsureSaveFlag(RedirectToRouteResult result, bool setSaveSuccesfullyFlag) { if (setSaveSuccesfullyFlag == false) { return(result); } Response.AddHeader(SavedSuccessfullyFramgment, "true");//surely this line is not usefull! because the redirect action in clinet doesn't resend the header. so we can remove this line as we don't use it anywhere too return(result.AddFragment(SavedSuccessfullyFramgment)); }