Base class for strongly-typed URLs parameters.
Inheritance: IXmlSerializable
Esempio n. 1
0
 public virtual ActionResult TemporaryRedirect(Url url)
 {
     return new ResourceResult(307, url.ToString()).WithHeader("Location", url.ToString());
 }
Esempio n. 2
0
 public virtual ActionResult Redirect(Url url)
 {
     return Redirect(url.ToString());
 }
Esempio n. 3
0
 public virtual ResourceResult SeeOther(Url url)
 {
     return new ResourceResult(303, null).WithHeader("Location", url.ToString());
 }
Esempio n. 4
0
 public virtual ResourceResult Created(Url url, object informationResource)
 {
     return new ResourceResult(201, informationResource).WithHeader("Location", url.ToString());
 }