I have the following code-lines:
return Json(new { redirectTo = UrlHelper.Action("Index", "Home") });
and
ModelState.AddModelError("Useraccount.Email", emailAlreadyExistsException.Message);
For both the UrlHelper.Action method and the ModelState.AddModelError Method I'd like to avoid the hardcoded strings. Is there a better possibility?