This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
mohsen
/
sevomin
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
ad fixes
master
miladkdz
10 years ago
parent
5fd093b3d8
commit
46441ec8ce
3 changed files
with
8 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
Sevomin.WebFrontend.Controllers/HomeController.cs
+6
-0
Sevomin.WebFrontend/App_Start/RouteConfig.cs
+1
-1
Sevomin.WebFrontend/Views/Job/JobList.cshtml
+ 1
- 0
Sevomin.WebFrontend.Controllers/HomeController.cs
View File
@ -45,6 +45,7 @@ namespace Sevomin.WebFrontend.Controllers
return
HttpNotFound
(
)
;
}
ad
.
ClickCount
+
+
;
_adRepository
.
Save
(
)
;
return
Redirect
(
ad
.
Link
)
;
}
}
+ 6
- 0
Sevomin.WebFrontend/App_Start/RouteConfig.cs
View File
@ -15,6 +15,12 @@ namespace Sevomin.WebFrontend
defaults
:
new
{
controller
=
"Base"
,
action
=
"Error404"
}
)
;
routes
.
MapRoute
(
name
:
"Ads"
,
url
:
"ad/{id}"
,
defaults
:
new
{
controller
=
"Home"
,
action
=
"Ads"
}
)
;
#region For Help
routes
.
MapRoute
(
+ 1
- 1
Sevomin.WebFrontend/Views/Job/JobList.cshtml
View File
@ -18,7 +18,7 @@
<p class="rtl">
@ad.Description
</p>
<a href="@Url.Action("Ads", "Home", new {id = ad.Id})" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-link"></span> مشاهده سایت </a>
<a
target="_blank"
href="@Url.Action("Ads", "Home", new {id = ad.Id})" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-link"></span> مشاهده سایت </a>
</div>
</div>
}
Write
Preview
Loading…
Cancel
Save