forked from VahidN/DNTCommon.Web.Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndex.cshtml
More file actions
29 lines (26 loc) · 872 Bytes
/
Copy pathIndex.cshtml
File metadata and controls
29 lines (26 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@using DNTCommon.Web.Core
@{
ViewData["Title"] = "Domain Helper Extensions";
var url1 = "http://www1.site.com/";
var url2 = "http://www2.site.com";
var haveTheSameDomain = url1.HaveTheSameDomain(url2);
}
<h1>@ViewData["Title"]</h1>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Samples</h3>
</div>
<div class="panel-body">
<div>
Url 1: @url1 <br/>
Url 2: @url2
</div>
<ul>
<li>url1.HaveTheSameDomain(url2): @haveTheSameDomain</li>
<li>url1.IsMvcPage(): @url1.IsMvcPage()</li>
<li>url1.GetSubDomain(): @url1.GetSubDomain()</li>
<li>url1.GetHostWithoutSubDomain(): @url1.GetHostWithoutSubDomain()</li>
<li>url1.GetUrlDomain(): @url1.GetUrlDomain()</li>
</ul>
</div>
</div>