Skip to content

Commit

Permalink
details
Browse files Browse the repository at this point in the history
  • Loading branch information
efdali committed Jun 26, 2019
1 parent b4ccf08 commit bc39d1d
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 2 deletions.
Binary file modified .vs/FilmPortalı/v15/.suo
Binary file not shown.
Binary file modified .vs/FilmPortalı/v15/Server/sqlite3/storage.ide
Binary file not shown.
Binary file modified .vs/FilmPortalı/v15/Server/sqlite3/storage.ide-shm
Binary file not shown.
Binary file modified .vs/FilmPortalı/v15/Server/sqlite3/storage.ide-wal
Binary file not shown.
2 changes: 1 addition & 1 deletion FilmPortalı/Controllers/FilmController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class FilmController : Controller
[Route("detay/{filmName}")]
public ActionResult FilmDetails(string filmName)
{
Films film = db.Films.Include("FilmCategory")
Films film =db.Films
.Where(f => f.FName == filmName).FirstOrDefault();
return View(film);
}
Expand Down
3 changes: 2 additions & 1 deletion FilmPortalı/Controllers/ProfileController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@

namespace FilmPortalı.Controllers
{
[Authorize()]
public class ProfileController : Controller
{
FilmPortaliEntities db = new FilmPortaliEntities();
// GET: Profile
public ActionResult Index()
{
Users user = db.Users.Where(u => u.UId == (int)Session["kullaniciId"]).FirstOrDefault();
var user = db.Users.Where(u => u.UId == (int)Session["kullaniciId"]).FirstOrDefault();
return View(user);
}
}
Expand Down
8 changes: 8 additions & 0 deletions FilmPortalı/Views/Home/FilmDetails.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

@{
ViewBag.Title = "FilmDetails";
Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>FilmDetails</h2>

Binary file modified FilmPortalı/bin/FilmPortalı.dll
Binary file not shown.
Binary file modified FilmPortalı/bin/FilmPortalı.pdb
Binary file not shown.
Binary file modified FilmPortalı/obj/Debug/FilmPortalı.dll
Binary file not shown.
Binary file modified FilmPortalı/obj/Debug/FilmPortalı.pdb
Binary file not shown.

0 comments on commit bc39d1d

Please sign in to comment.