├── README.md ├── WebPortal ├── Views │ ├── _ViewStart.cshtml │ ├── Checkout │ │ └── Index.cshtml │ ├── Shared │ │ ├── Category.cshtml │ │ └── _Layout.cshtml │ ├── Admin │ │ ├── CategoryCreate.cshtml │ │ ├── ContactDetail.cshtml │ │ ├── CategoryEdit.cshtml │ │ ├── ProductDetail.cshtml │ │ ├── CategoryList.cshtml │ │ ├── ContactList.cshtml │ │ ├── ProductList.cshtml │ │ ├── Index.cshtml │ │ ├── ProductCreate.cshtml │ │ ├── UserList.cshtml │ │ ├── Statistics.cshtml │ │ ├── UserDetail.cshtml │ │ ├── ProductEdit.cshtml │ │ └── OrderDetail.cshtml │ ├── web.config │ ├── Products │ │ ├── ProductDetail.cshtml │ │ └── LowPrice.cshtml │ ├── Contact │ │ └── Index.cshtml │ ├── Campaigns │ │ └── Index.cshtml │ ├── Login │ │ └── Index.cshtml │ ├── Payment │ │ └── Index.cshtml │ ├── AboutUs │ │ └── Index.cshtml │ └── Cart │ │ └── Index.cshtml ├── Global.asax ├── wwwroot │ ├── images │ │ ├── 1.jpg │ │ ├── 1.png │ │ ├── 10.jpg │ │ ├── 10.png │ │ ├── 11.jpg │ │ ├── 11.png │ │ ├── 12.jpg │ │ ├── 12.png │ │ ├── 13.jpg │ │ ├── 13.png │ │ ├── 14.jpg │ │ ├── 14.png │ │ ├── 15.jpg │ │ ├── 15.png │ │ ├── 16.jpg │ │ ├── 16.png │ │ ├── 17.jpg │ │ ├── 17.png │ │ ├── 18.jpg │ │ ├── 18.png │ │ ├── 19.jpg │ │ ├── 19.png │ │ ├── 2.jpg │ │ ├── 2.png │ │ ├── 20.jpg │ │ ├── 20.png │ │ ├── 21.jpg │ │ ├── 21.png │ │ ├── 22.jpg │ │ ├── 22.png │ │ ├── 23.jpg │ │ ├── 23.png │ │ ├── 24.jpg │ │ ├── 24.png │ │ ├── 25.jpg │ │ ├── 25.png │ │ ├── 26.jpg │ │ ├── 26.png │ │ ├── 27.jpg │ │ ├── 27.png │ │ ├── 28.jpg │ │ ├── 28.png │ │ ├── 29.jpg │ │ ├── 29.png │ │ ├── 3.jpg │ │ ├── 3.png │ │ ├── 30.jpg │ │ ├── 30.png │ │ ├── 31.jpg │ │ ├── 31.png │ │ ├── 32.jpg │ │ ├── 32.png │ │ ├── 33.jpg │ │ ├── 33.png │ │ ├── 34.jpg │ │ ├── 34.png │ │ ├── 35.jpg │ │ ├── 35.png │ │ ├── 36.png │ │ ├── 37.png │ │ ├── 38.png │ │ ├── 39.png │ │ ├── 4.jpg │ │ ├── 4.png │ │ ├── 40.png │ │ ├── 41.png │ │ ├── 42.png │ │ ├── 43.png │ │ ├── 44.png │ │ ├── 45.png │ │ ├── 46.png │ │ ├── 47.png │ │ ├── 48.png │ │ ├── 49.png │ │ ├── 5.jpg │ │ ├── 5.png │ │ ├── 50.png │ │ ├── 51.png │ │ ├── 52.png │ │ ├── 53.png │ │ ├── 54.png │ │ ├── 55.png │ │ ├── 56.png │ │ ├── 57.png │ │ ├── 58.png │ │ ├── 59.png │ │ ├── 6.jpg │ │ ├── 6.png │ │ ├── 60.png │ │ ├── 61.png │ │ ├── 62.png │ │ ├── 63.png │ │ ├── 64.png │ │ ├── 65.png │ │ ├── 66.png │ │ ├── 67.png │ │ ├── 68.png │ │ ├── 69.png │ │ ├── 7.jpg │ │ ├── 7.png │ │ ├── 70.png │ │ ├── 71.png │ │ ├── 72.png │ │ ├── 73.png │ │ ├── 74.png │ │ ├── 75.png │ │ ├── 76.png │ │ ├── 8.jpg │ │ ├── 8.png │ │ ├── 9.jpg │ │ ├── 9.png │ │ ├── tag.png │ │ ├── arrow.png │ │ ├── card.png │ │ ├── cart.png │ │ ├── offer.png │ │ ├── star.png │ │ ├── star1.png │ │ ├── close_1.png │ │ ├── img-sp.png │ │ └── paypal.png │ ├── fonts │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ ├── glyphicons-halflings-regular.woff │ │ └── glyphicons-halflings-regular.woff2 │ ├── js │ │ ├── counterup.min.js │ │ ├── move-top.js │ │ └── easing.js │ └── css │ │ ├── creditly.css │ │ ├── flexslider.css │ │ └── easy-responsive-tabs.css ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ └── glyphicons-halflings-regular.woff ├── Content │ └── Site.css ├── Controllers │ ├── AboutUsController.cs │ ├── CheckoutController.cs │ ├── CampaignsController.cs │ ├── ContactController.cs │ ├── CartController.cs │ ├── ProductsController.cs │ ├── LoginController.cs │ ├── HomeController.cs │ └── PaymentController.cs ├── Models │ └── WebPortalContactModel.cs ├── App_Start │ └── RouteConfig.cs ├── Global.asax.cs ├── packages.config ├── Web.Debug.config ├── Web.Release.config ├── Properties │ └── AssemblyInfo.cs └── Web.config ├── PortalDataLayer ├── packages.config ├── WebPortalModel.cs ├── TblSubscriber.cs ├── WebPortalModel.Designer.cs ├── TblAboutU.cs ├── sysdiagram.cs ├── TblContact.cs ├── TblCart.cs ├── TblOrder.cs ├── TblCategory.cs ├── App.Config ├── Properties │ └── AssemblyInfo.cs ├── WebPortalModel.Context.cs ├── TblUser.cs ├── TblProduct.cs ├── WebPortalModel.edmx.diagram └── PortalDataLayer.csproj ├── BusinessLayer ├── Models │ └── BussinesContactModel.cs ├── Properties │ └── AssemblyInfo.cs └── BusinessLayer.csproj ├── ManavMelih.sln └── .gitattributes /README.md: -------------------------------------------------------------------------------- 1 | ManavMelih -------------------------------------------------------------------------------- /WebPortal/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "~/Views/Shared/_LayoutMainPage.cshtml"; 3 | } -------------------------------------------------------------------------------- /WebPortal/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="WebPortal.MvcApplication" Language="C#" %> 2 | -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/1.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/1.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/10.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/10.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/11.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/11.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/11.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/12.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/12.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/12.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/13.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/13.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/13.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/14.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/14.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/14.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/15.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/15.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/16.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/16.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/16.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/17.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/17.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/17.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/18.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/18.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/18.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/19.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/19.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/19.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/2.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/2.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/20.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/20.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/20.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/21.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/21.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/21.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/22.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/22.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/22.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/23.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/23.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/23.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/24.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/24.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/24.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/25.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/25.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/25.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/26.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/26.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/26.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/27.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/27.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/27.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/28.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/28.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/28.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/29.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/29.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/29.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/3.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/3.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/30.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/30.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/30.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/31.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/31.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/31.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/32.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/32.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/32.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/33.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/33.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/33.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/34.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/34.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/34.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/35.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/35.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/35.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/36.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/37.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/38.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/39.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/4.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/4.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/40.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/41.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/42.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/43.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/44.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/45.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/45.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/46.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/46.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/47.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/47.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/48.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/49.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/49.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/5.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/5.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/50.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/51.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/51.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/52.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/52.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/53.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/53.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/54.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/54.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/55.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/55.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/56.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/56.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/57.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/58.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/59.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/59.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/6.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/6.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/60.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/61.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/61.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/62.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/62.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/63.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/63.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/64.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/65.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/65.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/66.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/66.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/67.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/67.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/68.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/68.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/69.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/69.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/7.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/7.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/70.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/70.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/71.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/71.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/72.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/73.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/73.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/74.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/74.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/75.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/75.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/76.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/8.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/8.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/9.jpg -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/9.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/tag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/tag.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/arrow.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/card.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/card.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/cart.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/offer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/offer.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/star.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/star1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/star1.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/close_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/close_1.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/img-sp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/img-sp.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/images/paypal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/images/paypal.png -------------------------------------------------------------------------------- /WebPortal/wwwroot/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /WebPortal/wwwroot/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /WebPortal/wwwroot/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /WebPortal/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /WebPortal/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /WebPortal/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /WebPortal/wwwroot/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /WebPortal/wwwroot/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /PortalDataLayer/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /WebPortal/Views/Checkout/Index.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "Checkout"; 4 | Layout = "~/Views/Shared/_LayoutMainPage.cshtml"; 5 | } 6 | 7 |

Checkout

8 | 9 | -------------------------------------------------------------------------------- /WebPortal/wwwroot/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AgemennoN/E-Commerce-WebSite/HEAD/WebPortal/wwwroot/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /WebPortal/Content/Site.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-top: 50px; 3 | padding-bottom: 20px; 4 | } 5 | 6 | /* Set padding to keep content from hitting the edges */ 7 | .body-content { 8 | padding-left: 15px; 9 | padding-right: 15px; 10 | } 11 | 12 | /* Set width on the form input elements since they're 100% wide by default */ 13 | input, 14 | select, 15 | textarea { 16 | max-width: 280px; 17 | } 18 | 19 | -------------------------------------------------------------------------------- /WebPortal/Controllers/AboutUsController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | 7 | namespace WebPortal.Controllers 8 | { 9 | public class AboutUsController : Controller 10 | { 11 | // GET: About 12 | public ActionResult Index() 13 | { 14 | return View(); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /WebPortal/Controllers/CheckoutController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | 7 | namespace WebPortal.Controllers 8 | { 9 | public class CheckoutController : Controller 10 | { 11 | // GET: Checkout 12 | public ActionResult Index() 13 | { 14 | return View(); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /WebPortal/Models/WebPortalContactModel.cs: -------------------------------------------------------------------------------- 1 | namespace WebPortal.Models 2 | { 3 | #region Busra Şimşek 4 | public class WebPortalContactModel 5 | { 6 | public string Name { get; set; } 7 | public string Mail { get; set; } 8 | public string Phone { get; set; } 9 | public string Subject { get; set; } 10 | public string Message { get; set; } 11 | } 12 | #endregion 13 | } -------------------------------------------------------------------------------- /PortalDataLayer/WebPortalModel.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | -------------------------------------------------------------------------------- /BusinessLayer/Models/BussinesContactModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | 8 | namespace BusinessLayer.Models 9 | { 10 | #region Busra Şimşek 11 | public class BussinesContactModel 12 | { 13 | public string Name { get; set; } 14 | public string Mail { get; set; } 15 | public string Phone { get; set; } 16 | public string Subject { get; set; } 17 | public string Message { get; set; } 18 | } 19 | #endregion 20 | } 21 | -------------------------------------------------------------------------------- /WebPortal/App_Start/RouteConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | 8 | namespace WebPortal 9 | { 10 | public class RouteConfig 11 | { 12 | public static void RegisterRoutes(RouteCollection routes) 13 | { 14 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 15 | 16 | routes.MapRoute( 17 | name: "Default", 18 | url: "{controller}/{action}/{id}", 19 | defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } 20 | ); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /WebPortal/Controllers/CampaignsController.cs: -------------------------------------------------------------------------------- 1 | using BusinessLayer; 2 | using PortalDataLayer; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Web; 7 | using System.Web.Mvc; 8 | 9 | namespace WebPortal.Controllers 10 | { 11 | public class CampaignsController : Controller 12 | { 13 | 14 | //>>>Belgin Çoban -- Start<<< 15 | public ActionResult Index() 16 | { 17 | TBusinessLayer business = new TBusinessLayer(); 18 | string OMessage; 19 | 20 | ViewBag.Products = business.GetProducDiscounts(out OMessage); 21 | return View(ViewBag); 22 | } 23 | //>>>Belgin Çoban --End<<< 24 | } 25 | } -------------------------------------------------------------------------------- /PortalDataLayer/TblSubscriber.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace PortalDataLayer 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class TblSubscriber 16 | { 17 | public int Id { get; set; } 18 | public string MailAddress { get; set; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /WebPortal/Views/Shared/Category.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "Category"; 4 | 5 | List Categories = (List)HttpContext.Current.Application["Categories"]; 6 | 7 | } 8 | 9 | 22 | 23 | -------------------------------------------------------------------------------- /PortalDataLayer/WebPortalModel.Designer.cs: -------------------------------------------------------------------------------- 1 | // T4 code generation is enabled for model 'D:\Visual Studio 2022 Project\E-Commerce-WebSite\PortalDataLayer\WebPortalModel.edmx'. 2 | // To enable legacy code generation, change the value of the 'Code Generation Strategy' designer 3 | // property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model 4 | // is open in the designer. 5 | 6 | // If no context and entity classes have been generated, it may be because you created an empty model but 7 | // have not yet chosen which version of Entity Framework to use. To generate a context class and entity 8 | // classes for your model, open the model in the designer, right-click on the designer surface, and 9 | // select 'Update Model from Database...', 'Generate Database from Model...', or 'Add Code Generation 10 | // Item...'. -------------------------------------------------------------------------------- /PortalDataLayer/TblAboutU.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace PortalDataLayer 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class TblAboutU 16 | { 17 | public int AboutId { get; set; } 18 | public string AboutTitle { get; set; } 19 | public string AboutDescription { get; set; } 20 | public string AboutImageUrl { get; set; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /PortalDataLayer/sysdiagram.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace PortalDataLayer 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class sysdiagram 16 | { 17 | public string name { get; set; } 18 | public int principal_id { get; set; } 19 | public int diagram_id { get; set; } 20 | public Nullable version { get; set; } 21 | public byte[] definition { get; set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /WebPortal/Global.asax.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | using BusinessLayer; 8 | 9 | namespace WebPortal 10 | { 11 | public class MvcApplication : System.Web.HttpApplication 12 | { 13 | protected void Application_Start() 14 | { 15 | AreaRegistration.RegisterAllAreas(); 16 | RouteConfig.RegisterRoutes(RouteTable.Routes); 17 | TBusinessLayer BusinessLayer = new TBusinessLayer(); 18 | string OMessage; 19 | Application["Categories"] = BusinessLayer.GetCategories(out OMessage); 20 | } 21 | 22 | void Session_Start() 23 | { 24 | Session["Admin"] = false; 25 | Session["User"] = null; 26 | } 27 | 28 | //void Session_End() 29 | //{ 30 | //} 31 | 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /PortalDataLayer/TblContact.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace PortalDataLayer 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class TblContact 16 | { 17 | public int ContactId { get; set; } 18 | public string ContactName { get; set; } 19 | public string ContactMail { get; set; } 20 | public string ContactPhone { get; set; } 21 | public string ContactSubject { get; set; } 22 | public string ContactMessage { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /WebPortal/Views/Admin/CategoryCreate.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "CategoryCreate"; 4 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 5 | } 6 | 7 | 8 | 13 | 14 |
15 |
16 |
17 |
18 |

Kategori Ekleme Formu

19 |
20 | @using (Html.BeginForm("CategoryCreate", "Admin", FormMethod.Post)) 21 | { 22 |
23 | 24 |
25 | 26 | } 27 |
28 |
29 |
30 |
31 | -------------------------------------------------------------------------------- /WebPortal/wwwroot/js/counterup.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jquery.counterup.js 1.0 3 | * 4 | * Copyright 2013, Benjamin Intal http://gambit.ph @bfintal 5 | * Released under the GPL v2 License 6 | * 7 | * Date: Nov 26, 2013 8 | */(function(e){"use strict";e.fn.counterUp=function(t){var n=e.extend({time:400,delay:10},t);return this.each(function(){var t=e(this),r=n,i=function(){var e=[],n=r.time/r.delay,i=t.text(),s=/[0-9]+,[0-9]+/.test(i);i=i.replace(/,/g,"");var o=/^[0-9]+$/.test(i),u=/^[0-9]+\.[0-9]+$/.test(i),a=u?(i.split(".")[1]||[]).length:0;for(var f=n;f>=1;f--){var l=parseInt(i/n*f);u&&(l=parseFloat(i/n*f).toFixed(a));if(s)while(/(\d+)(\d{3})/.test(l.toString()))l=l.toString().replace(/(\d+)(\d{3})/,"$1,$2");e.unshift(l)}t.data("counterup-nums",e);t.text("0");var c=function(){t.text(t.data("counterup-nums").shift());if(t.data("counterup-nums").length)setTimeout(t.data("counterup-func"),r.delay);else{delete t.data("counterup-nums");t.data("counterup-nums",null);t.data("counterup-func",null)}};t.data("counterup-func",c);setTimeout(t.data("counterup-func"),r.delay)};t.waypoint(i,{offset:"100%",triggerOnce:!0})})}})(jQuery); -------------------------------------------------------------------------------- /WebPortal/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /PortalDataLayer/TblCart.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace PortalDataLayer 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class TblCart 16 | { 17 | public int CartId { get; set; } 18 | public Nullable Quantity { get; set; } 19 | public Nullable Price { get; set; } 20 | public int IsOrdered { get; set; } 21 | public Nullable DateTime { get; set; } 22 | public Nullable ProductId { get; set; } 23 | public Nullable UserId { get; set; } 24 | 25 | public virtual TblProduct TblProduct { get; set; } 26 | public virtual TblUser TblUser { get; set; } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /WebPortal/Views/Admin/ContactDetail.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "ContactDetail"; 4 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 5 | } 6 | 7 | @{ 8 | PortalDataLayer.TblContact Contact = new PortalDataLayer.TblContact(); 9 | if (ViewBag.Detail != null) 10 | { 11 | Contact = ViewBag.Detail; 12 | } 13 | } 14 | 15 | 16 |
17 |
18 |
19 | Kişi → @Contact.ContactName 20 |
21 |
22 | Konu → @Contact.ContactSubject

23 | E-Posta Adresi → @Contact.ContactMail

24 | Telefon Numarası → @Contact.ContactPhone

25 | Mesaj → @Contact.ContactMessage 26 |
27 |
28 |
29 | 30 | -------------------------------------------------------------------------------- /PortalDataLayer/TblOrder.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace PortalDataLayer 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class TblOrder 16 | { 17 | public int OrderId { get; set; } 18 | public string Name { get; set; } 19 | public string PhoneNumber { get; set; } 20 | public string Address { get; set; } 21 | public string City { get; set; } 22 | public Nullable TotalPrice { get; set; } 23 | public string OrderedCarts { get; set; } 24 | public Nullable IsDelivered { get; set; } 25 | public Nullable OrderDateTime { get; set; } 26 | public Nullable UserId { get; set; } 27 | 28 | public virtual TblUser TblUser { get; set; } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /PortalDataLayer/TblCategory.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace PortalDataLayer 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class TblCategory 16 | { 17 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] 18 | public TblCategory() 19 | { 20 | this.TblProducts = new HashSet(); 21 | } 22 | 23 | public int CategoryId { get; set; } 24 | public string CategoryName { get; set; } 25 | public Nullable CategoryActive { get; set; } 26 | 27 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] 28 | public virtual ICollection TblProducts { get; set; } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /WebPortal/wwwroot/js/move-top.js: -------------------------------------------------------------------------------- 1 | /* UItoTop jQuery Plugin 1.2 | Matt Varone | http://www.mattvarone.com/web-design/uitotop-jquery-plugin */ 2 | (function($){$.fn.UItoTop=function(options){var defaults={text:'To Top',min:200,inDelay:600,outDelay:400,containerID:'toTop',containerHoverID:'toTopHover',scrollSpeed:1000,easingType:'linear'},settings=$.extend(defaults,options),containerIDhash='#'+settings.containerID,containerHoverIDHash='#'+settings.containerHoverID;$('body').append(''+settings.text+'');$(containerIDhash).hide().on('click.UItoTop',function(){$('html, body').animate({scrollTop:0},settings.scrollSpeed,settings.easingType);$('#'+settings.containerHoverID,this).stop().animate({'opacity':0},settings.inDelay,settings.easingType);return false;}).prepend('').hover(function(){$(containerHoverIDHash,this).stop().animate({'opacity':1},600,'linear');},function(){$(containerHoverIDHash,this).stop().animate({'opacity':0},700,'linear');});$(window).scroll(function(){var sd=$(window).scrollTop();if(typeof document.body.style.maxHeight==="undefined"){$(containerIDhash).css({'position':'absolute','top':sd+$(window).height()-50});} 3 | if(sd>settings.min) 4 | $(containerIDhash).fadeIn(settings.inDelay);else 5 | $(containerIDhash).fadeOut(settings.Outdelay);});};})(jQuery); -------------------------------------------------------------------------------- /PortalDataLayer/App.Config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /WebPortal/Web.Debug.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 29 | 30 | -------------------------------------------------------------------------------- /WebPortal/Web.Release.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 17 | 18 | 19 | 30 | 31 | -------------------------------------------------------------------------------- /WebPortal/Views/Admin/CategoryEdit.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "CategoryEdit"; 4 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 5 | } 6 | 7 | @{ 8 | PortalDataLayer.TblCategory CategoryById = new PortalDataLayer.TblCategory(); 9 | 10 | if (ViewBag.CategoryById != null) 11 | { 12 | CategoryById = ViewBag.CategoryById; 13 | } 14 | 15 | } 16 | 17 | 22 | 23 |
24 |
25 |
26 |
27 |

Kategori Ekleme Formu

28 |
29 | @using (Html.BeginForm("CategoryEdit", "Admin", FormMethod.Post)) 30 | { 31 |
32 | 33 |
34 |
35 | 36 |
37 | 38 | } 39 |
40 |
41 |
42 |
-------------------------------------------------------------------------------- /WebPortal/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("WebPortal")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("WebPortal")] 13 | [assembly: AssemblyCopyright("Copyright © 2022")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("6506d688-b9b5-4d77-a17f-a9481dbeeaad")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /BusinessLayer/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("BusinessLayer")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("BusinessLayer")] 13 | [assembly: AssemblyCopyright("Copyright © 2022")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("1a7d3f2f-a529-4057-a7e7-01e9eb102bfc")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /PortalDataLayer/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("PortalDataLayer")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("PortalDataLayer")] 13 | [assembly: AssemblyCopyright("Copyright © 2022")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("65ecd1ec-d420-48fb-9c02-7814272ba25a")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /WebPortal/Controllers/ContactController.cs: -------------------------------------------------------------------------------- 1 | using BusinessLayer; 2 | using BusinessLayer.Models; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Web; 7 | using System.Web.Mvc; 8 | using WebPortal.Models; 9 | 10 | namespace WebPortal.Controllers 11 | { 12 | #region Busra Şimşek 13 | public class ContactController : Controller 14 | { 15 | private TBusinessLayer _bussines; 16 | //Dependency injection ile alınması gerekiyor. Aşağıdaki gibi newlemekten daha doğru. 17 | public ContactController() 18 | { 19 | _bussines = new TBusinessLayer(); 20 | } 21 | // GET: Contact 22 | public ActionResult Index() 23 | { 24 | ViewBag.Message = ""; 25 | return View(); 26 | } 27 | 28 | [HttpPost] 29 | public ActionResult AddContact(WebPortalContactModel model) 30 | { 31 | //Çift maplama yaptık. Entitiylere business üzerinden erişmek yanlış diye bussines içine bir model ekledik 32 | //WebPortal içine de model ekledik. Bunları maplayarak gönderdik 33 | string message = ""; 34 | var addContactMessage = _bussines.AddContact(new BussinesContactModel 35 | { 36 | Name = model.Name, 37 | Phone = model.Phone, 38 | Mail = model.Mail, 39 | Message = model.Message, 40 | Subject = model.Subject, 41 | }); 42 | ViewBag.Message = addContactMessage; 43 | return View("Index"); 44 | } 45 | } 46 | #endregion 47 | } -------------------------------------------------------------------------------- /WebPortal/Views/Shared/_Layout.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | @ViewBag.Title - My ASP.NET Application 7 | 8 | 9 | 10 | 11 | 12 | 28 | 29 |
30 | @RenderBody() 31 |
32 |
33 |

© @DateTime.Now.Year - My ASP.NET Application

34 |
35 |
36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /PortalDataLayer/WebPortalModel.Context.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace PortalDataLayer 11 | { 12 | using System; 13 | using System.Data.Entity; 14 | using System.Data.Entity.Infrastructure; 15 | 16 | public partial class DbManavMelihEntities : DbContext 17 | { 18 | public DbManavMelihEntities() 19 | : base("name=DbManavMelihEntities") 20 | { 21 | } 22 | 23 | protected override void OnModelCreating(DbModelBuilder modelBuilder) 24 | { 25 | throw new UnintentionalCodeFirstException(); 26 | } 27 | 28 | public virtual DbSet sysdiagrams { get; set; } 29 | public virtual DbSet TblCategories { get; set; } 30 | public virtual DbSet TblContacts { get; set; } 31 | public virtual DbSet TblProducts { get; set; } 32 | public virtual DbSet TblSubscribers { get; set; } 33 | public virtual DbSet TblUsers { get; set; } 34 | public virtual DbSet TblAboutUs { get; set; } 35 | public virtual DbSet TblCarts { get; set; } 36 | public virtual DbSet TblOrders { get; set; } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /PortalDataLayer/TblUser.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace PortalDataLayer 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class TblUser 16 | { 17 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] 18 | public TblUser() 19 | { 20 | this.TblCarts = new HashSet(); 21 | this.TblOrders = new HashSet(); 22 | } 23 | 24 | public int UserId { get; set; } 25 | public string UserName { get; set; } 26 | public string UserPassword { get; set; } 27 | public string UserMail { get; set; } 28 | public string UserPhoneNumber { get; set; } 29 | public Nullable UserRegisterDate { get; set; } 30 | public Nullable UserActive { get; set; } 31 | 32 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] 33 | public virtual ICollection TblCarts { get; set; } 34 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] 35 | public virtual ICollection TblOrders { get; set; } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /WebPortal/Views/Admin/ProductDetail.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "ProductDetail"; 4 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 5 | } 6 | 7 | @{ 8 | PortalDataLayer.TblProduct Product = new PortalDataLayer.TblProduct(); 9 | 10 | if (ViewBag.Detail != null) 11 | { 12 | Product = ViewBag.Detail; 13 | } 14 | } 15 | 16 |
17 |
18 | Resim Bulunamadı 19 |
20 |
21 |
22 |

(@Product.ProductName)

23 |
24 | 25 |
26 | @if (Product.ProductDiscount > 0) 27 | { 28 |

29 | } 30 | else 31 | { 32 |

33 | } 34 |

35 |

36 |
37 |
38 |
39 |
40 | 41 | -------------------------------------------------------------------------------- /PortalDataLayer/TblProduct.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated from a template. 4 | // 5 | // Manual changes to this file may cause unexpected behavior in your application. 6 | // Manual changes to this file will be overwritten if the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace PortalDataLayer 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class TblProduct 16 | { 17 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] 18 | public TblProduct() 19 | { 20 | this.TblCarts = new HashSet(); 21 | } 22 | 23 | public int ProductId { get; set; } 24 | public string ProductName { get; set; } 25 | public string ProductImage { get; set; } 26 | public Nullable ProductPrice { get; set; } 27 | public Nullable ProductDiscount { get; set; } 28 | public Nullable ProductStock { get; set; } 29 | public Nullable ProductActive { get; set; } 30 | public Nullable CategoryId { get; set; } 31 | public Nullable PriceOnSale { get; set; } 32 | public string ProductDescription { get; set; } 33 | 34 | public virtual TblCategory TblCategory { get; set; } 35 | [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] 36 | public virtual ICollection TblCarts { get; set; } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /WebPortal/Views/Admin/CategoryList.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | @{ 4 | ViewBag.Title = "Admin Kategori Listesi"; 5 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 6 | } 7 | 8 | @{ 9 | List GetList = new List(); 10 | BusinessLayer.TBusinessLayer businesslayer = new BusinessLayer.TBusinessLayer(); 11 | 12 | if (ViewBag.GetList != null) 13 | { 14 | GetList = ViewBag.GetList; 15 | } 16 | } 17 | 18 | 27 | 28 |

29 | Kategori Ekle 30 |

31 |
32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | @foreach (var item in GetList) 44 | { 45 | int ItemCount = businesslayer.GetProductsByCategoryId(item.CategoryId, out string Omessage).Count(); 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | } 54 | 55 |
#Kategori AdıFarklı Ürün SayısıDüzenleSil
@item.CategoryId@item.CategoryName@ItemCountDüzenleSil
56 | -------------------------------------------------------------------------------- /WebPortal/Controllers/CartController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using BusinessLayer; 7 | using PortalDataLayer; 8 | 9 | namespace WebPortal.Controllers 10 | { 11 | // hhuseyin.demirtas 12 | public class CartController : Controller 13 | { 14 | // GET: Cart 15 | 16 | // hhuseyin.demirtas --- sepet sayfasının görüntülenmesi 17 | public ActionResult Index() 18 | { 19 | TBusinessLayer BusinessLayer = new TBusinessLayer(); 20 | List ProductInfos = new List(); 21 | string OMesage = ""; 22 | TblUser User = (TblUser)Session["User"]; 23 | 24 | if (User != null) 25 | { 26 | ViewBag.CartList = BusinessLayer.GetCartItems( 27 | User.UserId, 28 | out ProductInfos, 29 | out OMesage 30 | ); 31 | ViewBag.ProductInfos = ProductInfos; 32 | } 33 | 34 | return View(ViewBag); 35 | } 36 | 37 | //hhuseyin.demirtas --- sepet icerisinde bulunan urunun inactive duruma gecirilmesi 38 | public ActionResult DeleteProduct(string id) 39 | { 40 | TBusinessLayer BusinessLayer = new TBusinessLayer(); 41 | string OMesage = ""; 42 | int cartId = Convert.ToInt32(id); 43 | BusinessLayer.DeleteFromCart(cartId, out OMesage); 44 | return new RedirectResult("~/Cart/Index"); 45 | } 46 | } 47 | } 48 | /* 49 | Controller yazilirken is katmani uzerinden verilerin cekilmesi saglandi, 50 | kullanıcıya ait userid Session nesnesi icerisinden cekilerek ilgili kullanicinin sepete listelenmeye calisildi, 51 | sepetteki urunlerin bilgileri icin is katmanından ilgili Cart tablosundan productId eslesen urunler cekildi 52 | */ 53 | -------------------------------------------------------------------------------- /PortalDataLayer/WebPortalModel.edmx.diagram: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /WebPortal/Views/web.config: -------------------------------------------------------------------------------- 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 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /WebPortal/Views/Admin/ContactList.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "ContactList"; 4 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 5 | } 6 | 7 | @{ 8 | List Messages = new List(); 9 | if (ViewBag.ContactMessages != null) 10 | { 11 | Messages = ViewBag.ContactMessages; 12 | } 13 | } 14 | 15 | 16 | 17 | 18 | 19 | 28 |

Gelen Mesajlar

29 |
30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | @foreach (var item in Messages) 45 | { 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | } 57 | 58 |
#Gönderenin AdıE-mail AdresiTelefon NumarasıGönderinin KonusuGönderinin TarihiDetaySil
@item.ContactId@item.ContactName @item.ContactMail @item.ContactPhone@item.ContactSubjectTARIH EKLENECEKDetaySil
59 | 60 | @{ 61 | if (TempData["ContactMessageDelete"] != null) 62 | { 63 | 66 | } 67 | } 68 | 69 | -------------------------------------------------------------------------------- /ManavMelih.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.1.32228.430 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebPortal", "WebPortal\WebPortal.csproj", "{6506D688-B9B5-4D77-A17F-A9481DBEEAAD}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PortalDataLayer", "PortalDataLayer\PortalDataLayer.csproj", "{65ECD1EC-D420-48FB-9C02-7814272BA25A}" 9 | EndProject 10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BusinessLayer", "BusinessLayer\BusinessLayer.csproj", "{1A7D3F2F-A529-4057-A7E7-01E9EB102BFC}" 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | Debug|Any CPU = Debug|Any CPU 15 | Release|Any CPU = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {6506D688-B9B5-4D77-A17F-A9481DBEEAAD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {6506D688-B9B5-4D77-A17F-A9481DBEEAAD}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {6506D688-B9B5-4D77-A17F-A9481DBEEAAD}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {6506D688-B9B5-4D77-A17F-A9481DBEEAAD}.Release|Any CPU.Build.0 = Release|Any CPU 22 | {65ECD1EC-D420-48FB-9C02-7814272BA25A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {65ECD1EC-D420-48FB-9C02-7814272BA25A}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {65ECD1EC-D420-48FB-9C02-7814272BA25A}.Release|Any CPU.ActiveCfg = Release|Any CPU 25 | {65ECD1EC-D420-48FB-9C02-7814272BA25A}.Release|Any CPU.Build.0 = Release|Any CPU 26 | {1A7D3F2F-A529-4057-A7E7-01E9EB102BFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 27 | {1A7D3F2F-A529-4057-A7E7-01E9EB102BFC}.Debug|Any CPU.Build.0 = Debug|Any CPU 28 | {1A7D3F2F-A529-4057-A7E7-01E9EB102BFC}.Release|Any CPU.ActiveCfg = Release|Any CPU 29 | {1A7D3F2F-A529-4057-A7E7-01E9EB102BFC}.Release|Any CPU.Build.0 = Release|Any CPU 30 | EndGlobalSection 31 | GlobalSection(SolutionProperties) = preSolution 32 | HideSolutionNode = FALSE 33 | EndGlobalSection 34 | GlobalSection(ExtensibilityGlobals) = postSolution 35 | SolutionGuid = {5FD14315-28D7-4C97-8653-A27DC67CCDB7} 36 | EndGlobalSection 37 | EndGlobal 38 | -------------------------------------------------------------------------------- /WebPortal/Views/Admin/ProductList.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | @{ 4 | ViewBag.Title = "Admin Ürün Listesi"; 5 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 6 | } 7 | 8 | @{ 9 | List GetList = new List(); 10 | 11 | if (ViewBag.GetList != null) 12 | { 13 | GetList = ViewBag.GetList; 14 | } 15 | } 16 | 17 | 26 |

27 | Ürün Ekle 28 |

29 |
30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | @foreach (var item in GetList) 46 | { 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | } 59 | 60 |
#AdResimFiyatİndirim YüzdeliğiStokDetayDüzenleSil
@item.ProductId@item.ProductName@item.ProductPrice@item.ProductDiscount@item.ProductStockDetayDüzenleSil
61 | 62 | 63 | @{ 64 | if (TempData["ProductMessage"] != null) 65 | { 66 | 69 | } 70 | } 71 | 72 | 73 | -------------------------------------------------------------------------------- /WebPortal/Views/Admin/Index.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | @{ 4 | ViewBag.Title = "Siparişler"; 5 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 6 | } 7 | 8 | @{ 9 | List GetOrders = new List(); 10 | 11 | if (ViewBag.GetList != null) 12 | { 13 | GetOrders = ViewBag.GetList; 14 | } 15 | } 16 | 17 | 26 |
27 |
28 | 32 |
33 |
34 |
35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | @foreach (var Order in GetOrders) 50 | { 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | @if (Order.IsDelivered == false) 60 | { 61 | 62 | } 63 | else 64 | { 65 | 66 | } 67 | 68 | 69 | } 70 | 71 |
#AdTelefon NumarasıAdresFiyatTarih / SaatDetayTeslim Et
@Order.OrderId@Order.Name@Order.PhoneNumber@Order.Address / @Order.City@Order.TotalPrice@Order.OrderDateTimeDetayTeslim EtTeslim Edildi
72 | 73 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /WebPortal/wwwroot/css/creditly.css: -------------------------------------------------------------------------------- 1 | .creditly-wrapper { 2 | -webkit-transition: all 0.2s ease-in-out; 3 | transition: all 0.2s ease-in-out; 4 | font-size: 14px; 5 | color: white; 6 | } 7 | .creditly-wrapper .credit-card-wrapper { 8 | padding:0; 9 | } 10 | .creditly-wrapper input.has-error { 11 | outline: none; 12 | border-color: #ff7076; 13 | border-top-color: #ff5c61; 14 | border: 1px solid #ff7076; 15 | } 16 | .creditly-wrapper label { 17 | display: inline-block; 18 | margin-bottom: 10px; 19 | font-weight: 500; 20 | color:#212121; 21 | font-size:1.2em; 22 | } 23 | .creditly-wrapper .form-group { 24 | width: 100%; 25 | display: table; 26 | } 27 | .creditly-wrapper .card-type { 28 | margin-top: 10px; 29 | } 30 | .creditly-card-form .submit { 31 | outline:none; 32 | overflow: hidden; 33 | display: inline-block; 34 | visibility: visible!important; 35 | -webkit-font-smoothing: antialiased; 36 | border: none; 37 | padding: 1px; 38 | text-decoration: none; 39 | -webkit-touch-callout: none; 40 | -webkit-user-select: none; 41 | -moz-user-select: none; 42 | -ms-user-select: none; 43 | -o-user-select: none; 44 | user-select: none; 45 | cursor: pointer; 46 | } 47 | 48 | .creditly-card-form .submit span { 49 | display: block; 50 | position: relative; 51 | padding: 6px 50px 11px; 52 | letter-spacing: 3px; 53 | background:#84c639; 54 | font-size: 1.5em; 55 | color: #fff; 56 | font-weight: 500; 57 | border: none; 58 | outline: none; 59 | transition: 0.5s all; 60 | -webkit-transition: 0.5s all; 61 | -moz-transition: 0.5s all; 62 | -o-transition: 0.5s all; 63 | -ms-transition: 0.5s all; 64 | text-transform: uppercase; 65 | } 66 | .creditly-card-form .submit span:hover{ 67 | background: #fa1818; 68 | color: #fff; 69 | transition:0.5s all; 70 | -webkit-transition:0.5s all; 71 | -moz-transition:0.5s all; 72 | -o-transition:0.5s all; 73 | -ms-transition:0.5s all; 74 | } 75 | .creditly-card-form .submit span:hover i{ 76 | padding-left:1em; 77 | } 78 | .creditly-card-form .submit span i{ 79 | transition:.5s ease-in; 80 | -webkit-transition:.5s ease-in; 81 | -moz-transition:.5s ease-in; 82 | -o-transition:.5s ease-in; 83 | -ms-transition:.5s ease-in; 84 | } 85 | @media (max-width: 480px){ 86 | .creditly-card-form .submit span { 87 | padding: 6px 30px 11px; 88 | letter-spacing: 1px; 89 | } 90 | } 91 | @media (max-width: 414px){ 92 | .creditly-card-form .submit span:hover i { 93 | padding-left: 0.5em; 94 | } 95 | } 96 | @media (max-width: 375px){ 97 | .creditly-card-form .submit span { 98 | font-size: 1.3em; 99 | } 100 | } 101 | @media (max-width: 320px){ 102 | .creditly-card-form .submit span { 103 | padding: 6px 10px 11px; 104 | } 105 | } -------------------------------------------------------------------------------- /WebPortal/Controllers/ProductsController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using BusinessLayer; 7 | 8 | namespace WebPortal.Controllers 9 | { 10 | public class ProductsController : Controller 11 | { 12 | string UrunAdi; 13 | //<<< Vejdi BURAK - Start 14 | TBusinessLayer BusinessLayer = new TBusinessLayer(); 15 | // GET: Products 16 | public ActionResult Index() 17 | { 18 | string OMessage; 19 | var SortingType = Request.Form["Sort"];//form checkboxtan gelen secenek 20 | 21 | if (Request.QueryString["UrunAdi"] != null)//Urun arama ile donen urunler listesi 22 | { 23 | UrunAdi = Request.QueryString["UrunAdi"].ToString().ToLower(); 24 | ViewBag.Products = BusinessLayer.GetFoundProducts(out OMessage, UrunAdi); 25 | } 26 | else // normal sekilde goruntulenecek urunler listesi 27 | { 28 | ViewBag.Products = BusinessLayer.GetProducts(out OMessage); 29 | } 30 | return View(); 31 | } 32 | // Vejdi BURAK - End 33 | 34 | // [EMGT] + Hüseyin Bilgiç -- Start 35 | public ActionResult ProductDetail(string id) 36 | { 37 | string OMessage; 38 | int State; 39 | bool Result = int.TryParse(id, out State); 40 | if (Result) 41 | { 42 | ViewBag.Product = BusinessLayer.GetProductById(State, out OMessage); 43 | } 44 | return View(); 45 | } 46 | // [EMGT] + Hüseyin Bilgiç -- End 47 | 48 | 49 | //FIRAT --START 50 | public ActionResult LowPrice() 51 | { 52 | string OMessage; 53 | if (TempData["UrunAdi"] != null) 54 | { 55 | string UrunAdi = TempData["UrunAdi"].ToString(); 56 | ViewBag.UrunAdi = UrunAdi; 57 | ViewBag.LowProductsList = BusinessLayer.GetFoundLowProducts(out OMessage,UrunAdi); 58 | } 59 | else 60 | { 61 | ViewBag.LowProductsList = BusinessLayer.GetLowPrice(out OMessage); 62 | } 63 | return View(); 64 | } 65 | public ActionResult HighPrice() 66 | { 67 | string OMessage; 68 | if (TempData["UrunAdi"] != null) 69 | { 70 | string UrunAdi = TempData["UrunAdi"].ToString(); 71 | ViewBag.UrunAdi = UrunAdi; 72 | ViewBag.HighProductsList = BusinessLayer.GetFoundHighProducts(out OMessage, UrunAdi); 73 | } 74 | else 75 | { 76 | ViewBag.HighProductsList = BusinessLayer.GetHighPrice(out OMessage); 77 | } 78 | return View(); 79 | } 80 | 81 | 82 | //fırat--END 83 | 84 | } 85 | } -------------------------------------------------------------------------------- /WebPortal/Views/Admin/ProductCreate.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "ProductCreate"; 4 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 5 | } 6 | 7 | @{ 8 | List ProductList = new List(); 9 | List CategoryList = new List(); 10 | 11 | if (ViewBag.CategoryList != null) 12 | { 13 | CategoryList = ViewBag.CategoryList; 14 | } 15 | 16 | } 17 | 18 | 23 | 24 |
25 |
26 |
27 |
28 |

Ürün Ekleme Formu

29 |
30 | @using (Html.BeginForm("ProductCreate", "Admin", FormMethod.Post)) 31 | { 32 |
33 | 34 |
35 |
36 | 37 |
38 |
39 | 40 | (Ornek : isim.jpg) 41 |
42 |
43 | 44 |
45 |
46 | 47 |
48 |
49 | 50 |
51 |
52 | 60 |
61 | 62 | } 63 |
64 |
65 |
66 |
67 | 68 | -------------------------------------------------------------------------------- /BusinessLayer/BusinessLayer.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {1A7D3F2F-A529-4057-A7E7-01E9EB102BFC} 8 | Library 9 | Properties 10 | BusinessLayer 11 | BusinessLayer 12 | v4.7.2 13 | 512 14 | true 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | 35 | False 36 | ..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll 37 | 38 | 39 | ..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | {65ecd1ec-d420-48fb-9c02-7814272ba25a} 58 | PortalDataLayer 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /WebPortal/Views/Admin/UserList.cshtml: -------------------------------------------------------------------------------- 1 | 2 | 3 | @{ 4 | ViewBag.Title = "Admin Kullanıcılar Listesi"; 5 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 6 | } 7 | 8 | @{ 9 | //Üyelerin ekrana getirildiği ViewBag 10 | List UserList = new List(); 11 | 12 | if (ViewBag.GetListOfUsers != null) 13 | { 14 | UserList = ViewBag.GetListOfUsers; 15 | } 16 | //Abonelerin ekrana getirildiği ViewBag 17 | List SubscriberList = new List(); 18 | 19 | if (ViewBag.GetListOfSubscribers != null) 20 | { 21 | SubscriberList = ViewBag.GetListOfSubscribers; 22 | } 23 | } 24 | 25 | 26 | 27 | 36 |

Üyeler

37 |
38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | @foreach (var item in UserList) 53 | { 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | } 65 | 66 |
#Kullanıcı AdıKullanıcı ParolasıMail AdresiTelefon NumarasıÜye Olma TarihiDetaySil
@item.UserId@item.UserName@item.UserPassword@item.UserMail@item.UserPhoneNumber@item.UserRegisterDateDetaySil
67 | 68 |

Aboneler

69 |
70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | @foreach (var item in SubscriberList) 80 | { 81 | 82 | 83 | 84 | 85 | 86 | } 87 | 88 |
#AbonelerSil
@item.Id@item.MailAddressSil
89 | 90 | @{ 91 | if (TempData["UserRemoved"] != null) 92 | { 93 | 96 | } 97 | } 98 | 99 | 100 | -------------------------------------------------------------------------------- /WebPortal/Web.config: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /WebPortal/Controllers/LoginController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Security; 7 | using BusinessLayer; 8 | using PortalDataLayer; 9 | 10 | namespace WebPortal.Controllers 11 | { 12 | public class LoginController : Controller 13 | { 14 | // GET: Login 15 | 16 | //<<>> 95 | 96 | } 97 | } -------------------------------------------------------------------------------- /WebPortal/Views/Admin/Statistics.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "Statistics"; 4 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 5 | } 6 | 7 | @{ 8 | int ProductsCount = 0; 9 | int CategoriesCount = 0; 10 | int UsersCount = 0; 11 | int SubscribersCount = 0; 12 | int OrdersCount = 0; 13 | double TotalRevenue = 0; 14 | 15 | if (ViewBag.ProductsCount != null) 16 | { ProductsCount = ViewBag.ProductsCount; } 17 | 18 | if (ViewBag.CategoriesCount != null) 19 | { CategoriesCount = ViewBag.CategoriesCount; } 20 | 21 | if (ViewBag.UsersCount != null) 22 | { UsersCount = ViewBag.UsersCount; } 23 | 24 | if (ViewBag.SubscribersCount != null) 25 | { SubscribersCount = ViewBag.SubscribersCount; } 26 | 27 | if (ViewBag.OrdersCount != null) 28 | { OrdersCount = ViewBag.OrdersCount; } 29 | 30 | if (ViewBag.TotalRevenue != null) 31 | { TotalRevenue = ViewBag.TotalRevenue; } 32 | } 33 | 34 | 35 | 36 | 37 | Bootstrap Example 38 | 39 | 40 | 41 | 42 | 43 | 53 | 54 | 55 |

İstatistikler

56 |
57 |
58 |
59 |
60 |
61 |
62 |

Ürün Sayısı

63 |

@ProductsCount

64 |
65 |
66 |
67 |
68 |

Kategori Sayısı

69 |

@CategoriesCount

70 |
71 |
72 |
73 |
74 |

Kullanıcı Sayısı

75 |

@UsersCount

76 |
77 |
78 |
79 |
80 |

Abone Sayısı

81 |

@SubscribersCount

82 |
83 |
84 |
85 |
86 |

Sipariş Sayısı

87 |

@OrdersCount

88 |
89 |
90 |
91 |
92 |

Toplam Hasılat

93 |

TRY @TotalRevenue

94 |
95 |
96 |
97 |
98 |
99 | 100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /WebPortal/Views/Products/ProductDetail.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "ProductDetail"; 4 | Layout = "~/Views/Shared/_LayoutMainPage.cshtml"; 5 | 6 | PortalDataLayer.TblProduct product = new PortalDataLayer.TblProduct(); 7 | 8 | if (ViewBag.Product != null) 9 | { 10 | product = (PortalDataLayer.TblProduct)ViewBag.Product; 11 | } 12 | 13 | } 14 | @* [YK] + Hüseyin Bilgiç -- Start *@ 15 | 86 | 87 | @* [YK] + Hüseyin Bilgiç -- End *@ 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /WebPortal/Views/Contact/Index.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewBag.Title = "Index"; 3 | Layout = "~/Views/Shared/_LayoutMainPage.cshtml"; 4 | } 5 | 6 |
7 |
8 |
9 | 13 |
14 |
15 | 16 |
17 |
18 |

Bize Ulaşın

19 | @if (!String.IsNullOrEmpty(ViewBag.Message)) 20 | { 21 | 22 | } 23 |
24 |
25 |
    26 |
  • 27 |
  • Adresİstanbul merkez.
  • 28 |
29 | 33 |
    34 |
  • 35 |
  • Telefon(012) 345 6789
  • 36 |
37 |
38 |
39 |
40 |
41 | 42 | 43 |
44 |
45 | 46 | 47 |
48 |
49 | 50 | 51 | 52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | 60 |
61 | 62 | 63 | 64 |
65 | 66 | 68 |
69 | -------------------------------------------------------------------------------- /WebPortal/Views/Admin/UserDetail.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "UserDetail"; 4 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 5 | } 6 | 7 | 16 | 17 | @{ 18 | PortalDataLayer.TblUser User = new PortalDataLayer.TblUser(); 19 | List AllOrders = new List(); 20 | 21 | if (ViewBag.UserById != null) 22 | { 23 | User = ViewBag.UserById; 24 | } 25 | 26 | if (ViewBag.AllOrders != null) 27 | { 28 | AllOrders = ViewBag.AllOrders; 29 | } 30 | decimal TotalRevenue = 0; 31 | } 32 | 33 | 34 |
35 |

@User.UserName

36 | 37 | @if (User.UserActive == false) 38 | { 39 |

Bu Hesap Artık Aktif Değil

40 | } 41 |
42 | 43 | 44 | @**@ 49 | 50 |
51 |
52 | Detaylar 53 |
54 |
55 | 60 |
61 |
62 |
63 |
64 |
65 | 66 |
"@User.UserName" Kullanıcısına Ait Tüm Siparişler
67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | @foreach (var Order in AllOrders) 82 | { 83 | if (Order.UserId == User.UserId) 84 | { 85 | TotalRevenue += (decimal)Order.TotalPrice; 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | @if (Order.IsDelivered == false) 95 | { 96 | 97 | } 98 | else 99 | { 100 | 101 | } 102 | 103 | 104 | } 105 | } 106 | 107 |
108 |
[Siparişlerin Toplam Getirisi: @TotalRevenue ₺]
109 |
#AdTelefon NumarasıAdresFiyatTarih / SaatDetayTeslim Et
@Order.OrderId@Order.Name@Order.PhoneNumber@Order.Address / @Order.City@Order.TotalPrice@Order.OrderDateTimeDetayTeslim EtTeslim Edildi
110 | -------------------------------------------------------------------------------- /WebPortal/wwwroot/css/flexslider.css: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery FlexSlider v2.0 3 | * http://www.woothemes.com/flexslider/ 4 | * 5 | * Copyright 2012 WooThemes 6 | * Free to use under the GPLv2 license. 7 | * http://www.gnu.org/licenses/gpl-2.0.html 8 | * 9 | * Contributing author: Tyler Smith (@mbmufffin) 10 | */ 11 | /* Browser Resets */ 12 | .flex-container a:active, 13 | .flexslider a:active, 14 | .flex-container a:focus, 15 | .flexslider a:focus {outline: none;} 16 | .slides, 17 | .flex-control-nav, 18 | .flex-direction-nav {margin: 0; padding: 0; list-style: none;} 19 | 20 | /* FlexSlider Necessary Styles 21 | *********************************/ 22 | .flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */ 23 | .flexslider .slides img {width: 100%; display: block;} 24 | .flex-pauseplay span {text-transform: capitalize;} 25 | 26 | /* Clearfix for the .slides element */ 27 | .slides:after {content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;} 28 | html[xmlns] .slides {display: block;} 29 | * html .slides {height: 1%;} 30 | 31 | /* No JavaScript Fallback */ 32 | /* If you are not using another script, such as Modernizr, make sure you 33 | * include js that eliminates this class on page load */ 34 | .no-js .slides > li:first-child {display: block;} 35 | 36 | 37 | /* FlexSlider Default Theme 38 | *********************************/ 39 | .flexslider { 40 | border: 0px; 41 | position: relative; 42 | zoom: 1; 43 | overflow: hidden; 44 | } 45 | .flex-viewport {max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; transition: all 1s ease;} 46 | .loading .flex-viewport {max-height: 300px;} 47 | .flexslider .slides {zoom: 1;} 48 | 49 | .carousel li {margin-right: 5px} 50 | 51 | 52 | /* Direction Nav */ 53 | .flex-direction-nav {*height: 0;} 54 | .flex-direction-nav a { 55 | width: 25px; 56 | height: 15px; 57 | margin: 0; 58 | display: block; 59 | background: none; 60 | position: absolute; 61 | top: 0; 62 | z-index: 10; 63 | cursor: pointer; 64 | text-indent: -9999px; 65 | opacity: 1; 66 | -webkit-transition: all .3s ease; 67 | } 68 | .flex-direction-nav .flex-next { 69 | background:none; 70 | right:0%; 71 | top: 0%; 72 | } 73 | .flex-direction-nav .flex-prev {left:0%;} 74 | .flexslider:hover .flex-next {opacity: 0.8;} 75 | .flexslider:hover .flex-prev {opacity: 0.8;} 76 | .flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover {opacity: 1;} 77 | .flex-direction-nav .flex-disabled {opacity: .3!important; filter:alpha(opacity=30); cursor: default;} 78 | /* Control Nav */ 79 | .flex-control-nav { 80 | display: block; 81 | position: absolute; 82 | left: 50%; 83 | margin-left: 0px; 84 | bottom: 0; 85 | } 86 | .flex-control-nav li { 87 | margin: 0 5px; 88 | display: inline-block; 89 | zoom: 1; 90 | } 91 | .flex-control-paging li a { 92 | width: 10px; 93 | height: 10px; 94 | display: block; 95 | background: none; 96 | cursor: pointer; 97 | text-indent: -9999px; 98 | border:2px solid #84C639; 99 | border-radius:20px; 100 | } 101 | .flex-control-paging li a.flex-active { 102 | background: #84C639; 103 | cursor: default; 104 | border: 2px solid #84C639; 105 | } 106 | .flex-control-thumbs {margin: 5px 0 0; position: static; overflow: hidden;} 107 | .flex-control-thumbs li {width: 25%; float: left; margin: 0;} 108 | .flex-control-thumbs img {width: 100%; display: block; opacity: .7; cursor: pointer;} 109 | .flex-control-thumbs img:hover {opacity: 1;} 110 | .flex-control-thumbs .flex-active {opacity: 1; cursor: default;} 111 | @media screen and (max-width:1440px) { 112 | 113 | } 114 | @media screen and (max-width: 1366px){ 115 | 116 | } 117 | @media screen and (max-width: 1080px){ 118 | 119 | } 120 | @media screen and (max-width:991px) { 121 | 122 | } 123 | @media screen and (max-width:667px) { 124 | 125 | @media screen and (max-width: 600px) { 126 | 127 | } 128 | @media screen and (max-width: 480px) { 129 | section.slider { 130 | padding-top: 0%; 131 | } 132 | .flexslider { 133 | padding: 0px 0px; 134 | } 135 | .flex-control-nav { 136 | left: 44.5%; 137 | } 138 | } 139 | @media screen and (max-width: 414px){ 140 | 141 | @media screen and (max-width: 320px) { 142 | section.slider { 143 | padding-top: 0%; 144 | } 145 | 146 | } -------------------------------------------------------------------------------- /WebPortal/Controllers/HomeController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using BusinessLayer; 7 | using PortalDataLayer; 8 | 9 | namespace WebPortal.Controllers 10 | { 11 | public class HomeController : Controller 12 | { 13 | //>>>Hüseyin Bilgiç<<< 14 | public ActionResult Index(string id) 15 | { 16 | TBusinessLayer business = new TBusinessLayer(); 17 | string OMessage; 18 | TblCategory Category = business.GetCategoryById(id, out OMessage); 19 | if (Category != null) 20 | { 21 | ViewBag.Category = Category; 22 | ViewBag.ProductsByCategory = business.GetProductsByCategoryId(Category.CategoryId, out OMessage); 23 | } 24 | else if (id != null && Category == null) 25 | { 26 | return new RedirectResult("/"); 27 | } 28 | ViewBag.Categories = business.GetCategories(out OMessage); 29 | 30 | //>>>Belgin Çoban--<<< 31 | ViewBag.ProductsOnSales = business.GetProducDiscounts(out OMessage); 32 | //>> --End<<< 33 | 34 | return View(ViewBag); 35 | } 36 | //>>>Hüseyin Bilgiç<<< 37 | 38 | #region Celal Serdar Ergun Aksiyon 39 | // Celal Serdar Ergun Aksiyon 40 | // Ekleme aksiyonunu yapar 41 | public ActionResult AddProductAction() 42 | { 43 | string OMessage = "Sepete Eklemek Icin Lutfen Uye Girisi Yapiniz"; 44 | string ProductIdString = Request.Form["ProductId"].ToString(); 45 | string ReturnUrl = Request.Form["ReturnUrl"].ToString(); 46 | int ProductId = Convert.ToInt32(ProductIdString); 47 | TblUser User = (TblUser)Session["User"]; 48 | 49 | //TblUser User = new TblUser(); // test icin 50 | // User.UserId = 2; // test icin 51 | bool IsAdded = false; 52 | 53 | try 54 | { 55 | if (User != null) 56 | { 57 | try 58 | { 59 | TBusinessLayer BusinessLayer = new TBusinessLayer(); 60 | IsAdded = BusinessLayer.AddProductToCart( 61 | ProductId, 62 | User.UserId, 63 | out OMessage 64 | ); 65 | } 66 | catch (Exception ex) 67 | { 68 | OMessage = ex.Message; 69 | } 70 | } 71 | } 72 | catch (Exception ex) 73 | { 74 | OMessage = ex.Message; 75 | } 76 | 77 | TempData["CartMessage"] = OMessage; 78 | 79 | if (ReturnUrl != null) 80 | return new RedirectResult(ReturnUrl); 81 | else 82 | return new RedirectResult("~/"); 83 | } 84 | // Celal Serdar Ergun - End 85 | #endregion 86 | //<<>> 119 | } 120 | } 121 | 122 | 123 | -------------------------------------------------------------------------------- /WebPortal/Views/Admin/ProductEdit.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "ProductEdit"; 4 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 5 | } 6 | 7 | @{ 8 | List ProductList = new List(); 9 | List CategoryList = new List(); 10 | 11 | if (ViewBag.CategoryList != null) 12 | { 13 | CategoryList = ViewBag.CategoryList; 14 | } 15 | 16 | PortalDataLayer.TblProduct Product = new PortalDataLayer.TblProduct(); 17 | if (ViewBag.ProductbyId != null) 18 | { 19 | Product = ViewBag.ProductbyId; 20 | 21 | } 22 | } 23 | 24 | 25 |
26 |
27 |
28 |
29 |

Ürün Düzenleme Formu

30 |
31 | @using (Html.BeginForm("ProductEdit", "Admin", FormMethod.Post)) 32 | { 33 |
34 | 35 |
36 |
37 | 38 | 39 |
40 |
41 | 42 |
43 |
44 | 45 |
46 |
47 | 48 | (Örnek : Ürün.jpg) 49 |
50 |
51 | 52 | 53 |
54 |
55 | 56 | 57 |
58 |
59 | 60 | 61 |
62 |
63 | 64 | 80 |
81 | 82 | } 83 | Vazgeç 84 |
85 |
86 |
87 |
88 | 89 | 90 | -------------------------------------------------------------------------------- /WebPortal/Views/Admin/OrderDetail.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "OrderDetail"; 4 | Layout = "~/Views/Shared/_AdminLayout.cshtml"; 5 | } 6 | 7 | @{ 8 | PortalDataLayer.TblOrder Order = new PortalDataLayer.TblOrder(); 9 | List CartsInOrder = new List(); 10 | BusinessLayer.TBusinessLayer businessLayer = new BusinessLayer.TBusinessLayer(); 11 | 12 | if (ViewBag.OrderbyId != null) 13 | { 14 | Order = ViewBag.OrderbyId; 15 | CartsInOrder = ViewBag.CartsInOrder; 16 | } 17 | } 18 | 19 | 20 | 21 | @* Sepet tablosunun css kismi Template olarak Hasan Huseyin Demirtas'in Sepet sayfasindan alinmistir.*@ 22 |
23 | @{ 24 | PortalDataLayer.TblUser User = businessLayer.GetUserByUserId((int)Order.UserId); 25 |

Sipariş Detayları

26 |
27 | if ((bool)Order.IsDelivered == false) 28 | { 29 |

Teslim Edilmedi

30 | } 31 |
32 |

@Order.OrderDateTime

33 |

@Order.Name

34 |

@Order.PhoneNumber

35 |

@Order.Address / @Order.City

36 |

Alışveriş Sepeti (@CartsInOrder.Count) Farklı Ürün İçermektedir

@Order.TotalPrice ₺

37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | @foreach (PortalDataLayer.TblCart Cart in CartsInOrder) 51 | { 52 | PortalDataLayer.TblProduct Product = businessLayer.GetProductByProductId((int)Cart.ProductId, out string OMessage); 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | } 63 | 64 | 65 | 66 |
SepetIdÜrün İsmiÜrün ResmiÜrün AdetiBirim FiyatıToplam Fiyatı
@Cart.CartId @Product.ProductName @Cart.Quantity @Product.ProductPrice @Cart.Price
67 |
68 |
69 | @*

Hesap detayları:

70 | *@ 75 | } 76 | 77 |
78 |
79 |
80 | Hesap Sahibi → @User.UserName 81 |
82 |
83 | E-Posta Adresi → @User.UserMail

84 | Telefon Numarası → @User.UserPhoneNumber

85 | Profili Görüntüle 86 |
87 |
88 |
89 |
90 | -------------------------------------------------------------------------------- /WebPortal/Views/Campaigns/Index.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "Index"; 4 | Layout = "~/Views/Shared/_LayoutMainPage.cshtml"; 5 | } 6 | 7 | 8 |
9 |
10 |
11 | 15 |
16 |
17 | 18 |
19 |
20 |
    21 |
  • 22 |
    23 |

    Katkı Maddesiz Doğal Ürünler ile

    24 | 27 |
    28 |
  • 29 |
  • 30 |
    31 |

    En Taze Sebze Çeşitleri

    32 |
    33 | Şimdi Al 34 |
    35 |
    36 |
  • 37 |
  • 38 |
    39 |

    Hesaplı FiyatlarlaBuz Gibi İçecekler

    40 |
    41 | Kampanyalarımız 42 |
    43 |
    44 | 45 |
  • 46 |
47 |
48 |
49 |
50 |
51 | 52 | 53 | 54 | 64 | 65 |
66 |
67 | 68 | 69 |
70 |
71 |

İndirimli Ürünler

72 |
73 | 74 | @foreach (PortalDataLayer.TblProduct Product in ViewBag.Products) 75 | { 76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |  84 |

@Product.ProductName

85 |

@Product.PriceOnSale ₺@Product.ProductPrice ₺

86 |
87 |
88 | @using (Html.BeginForm("AddProductAction", "Home", FormMethod.Post)) 89 | { 90 | 91 |
92 | 93 | 94 | 95 |
96 | } 97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 | } 105 | 106 |
107 |
108 |
109 | 110 | -------------------------------------------------------------------------------- /WebPortal/wwwroot/js/easing.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery EasIng v1.1.2 - http://gsgd.co.uk/sandbox/jquery.easIng.php 3 | * 4 | * Uses the built In easIng capabilities added In jQuery 1.1 5 | * to offer multiple easIng options 6 | * 7 | * Copyright (c) 2007 George Smith 8 | * Licensed under the MIT License: 9 | * http://www.opensource.org/licenses/mit-license.php 10 | */ 11 | 12 | // t: current time, b: begInnIng value, c: change In value, d: duration 13 | 14 | jQuery.extend( jQuery.easing, 15 | { 16 | easeInQuad: function (x, t, b, c, d) { 17 | return c*(t/=d)*t + b; 18 | }, 19 | easeOutQuad: function (x, t, b, c, d) { 20 | return -c *(t/=d)*(t-2) + b; 21 | }, 22 | easeInOutQuad: function (x, t, b, c, d) { 23 | if ((t/=d/2) < 1) return c/2*t*t + b; 24 | return -c/2 * ((--t)*(t-2) - 1) + b; 25 | }, 26 | easeInCubic: function (x, t, b, c, d) { 27 | return c*(t/=d)*t*t + b; 28 | }, 29 | easeOutCubic: function (x, t, b, c, d) { 30 | return c*((t=t/d-1)*t*t + 1) + b; 31 | }, 32 | easeInOutCubic: function (x, t, b, c, d) { 33 | if ((t/=d/2) < 1) return c/2*t*t*t + b; 34 | return c/2*((t-=2)*t*t + 2) + b; 35 | }, 36 | easeInQuart: function (x, t, b, c, d) { 37 | return c*(t/=d)*t*t*t + b; 38 | }, 39 | easeOutQuart: function (x, t, b, c, d) { 40 | return -c * ((t=t/d-1)*t*t*t - 1) + b; 41 | }, 42 | easeInOutQuart: function (x, t, b, c, d) { 43 | if ((t/=d/2) < 1) return c/2*t*t*t*t + b; 44 | return -c/2 * ((t-=2)*t*t*t - 2) + b; 45 | }, 46 | easeInQuint: function (x, t, b, c, d) { 47 | return c*(t/=d)*t*t*t*t + b; 48 | }, 49 | easeOutQuint: function (x, t, b, c, d) { 50 | return c*((t=t/d-1)*t*t*t*t + 1) + b; 51 | }, 52 | easeInOutQuint: function (x, t, b, c, d) { 53 | if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; 54 | return c/2*((t-=2)*t*t*t*t + 2) + b; 55 | }, 56 | easeInSine: function (x, t, b, c, d) { 57 | return -c * Math.cos(t/d * (Math.PI/2)) + c + b; 58 | }, 59 | easeOutSine: function (x, t, b, c, d) { 60 | return c * Math.sin(t/d * (Math.PI/2)) + b; 61 | }, 62 | easeInOutSine: function (x, t, b, c, d) { 63 | return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; 64 | }, 65 | easeInExpo: function (x, t, b, c, d) { 66 | return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; 67 | }, 68 | easeOutExpo: function (x, t, b, c, d) { 69 | return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; 70 | }, 71 | easeInOutExpo: function (x, t, b, c, d) { 72 | if (t==0) return b; 73 | if (t==d) return b+c; 74 | if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; 75 | return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; 76 | }, 77 | easeInCirc: function (x, t, b, c, d) { 78 | return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; 79 | }, 80 | easeOutCirc: function (x, t, b, c, d) { 81 | return c * Math.sqrt(1 - (t=t/d-1)*t) + b; 82 | }, 83 | easeInOutCirc: function (x, t, b, c, d) { 84 | if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; 85 | return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; 86 | }, 87 | easeInElastic: function (x, t, b, c, d) { 88 | var s=1.70158;var p=0;var a=c; 89 | if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 90 | if (a < Math.abs(c)) { a=c; var s=p/4; } 91 | else var s = p/(2*Math.PI) * Math.asin (c/a); 92 | return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 93 | }, 94 | easeOutElastic: function (x, t, b, c, d) { 95 | var s=1.70158;var p=0;var a=c; 96 | if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 97 | if (a < Math.abs(c)) { a=c; var s=p/4; } 98 | else var s = p/(2*Math.PI) * Math.asin (c/a); 99 | return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; 100 | }, 101 | easeInOutElastic: function (x, t, b, c, d) { 102 | var s=1.70158;var p=0;var a=c; 103 | if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); 104 | if (a < Math.abs(c)) { a=c; var s=p/4; } 105 | else var s = p/(2*Math.PI) * Math.asin (c/a); 106 | if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 107 | return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; 108 | }, 109 | easeInBack: function (x, t, b, c, d, s) { 110 | if (s == undefined) s = 1.70158; 111 | return c*(t/=d)*t*((s+1)*t - s) + b; 112 | }, 113 | easeOutBack: function (x, t, b, c, d, s) { 114 | if (s == undefined) s = 1.70158; 115 | return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; 116 | }, 117 | easeInOutBack: function (x, t, b, c, d, s) { 118 | if (s == undefined) s = 1.70158; 119 | if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 120 | return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 121 | }, 122 | easeInBounce: function (x, t, b, c, d) { 123 | return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; 124 | }, 125 | easeOutBounce: function (x, t, b, c, d) { 126 | if ((t/=d) < (1/2.75)) { 127 | return c*(7.5625*t*t) + b; 128 | } else if (t < (2/2.75)) { 129 | return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; 130 | } else if (t < (2.5/2.75)) { 131 | return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; 132 | } else { 133 | return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; 134 | } 135 | }, 136 | easeInOutBounce: function (x, t, b, c, d) { 137 | if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; 138 | return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; 139 | } 140 | }); 141 | -------------------------------------------------------------------------------- /PortalDataLayer/PortalDataLayer.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {65ECD1EC-D420-48FB-9C02-7814272BA25A} 8 | Library 9 | Properties 10 | PortalDataLayer 11 | PortalDataLayer 12 | v4.7.2 13 | 512 14 | true 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | 35 | ..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll 36 | 37 | 38 | ..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | WebPortalModel.tt 56 | 57 | 58 | WebPortalModel.tt 59 | 60 | 61 | WebPortalModel.tt 62 | 63 | 64 | WebPortalModel.tt 65 | 66 | 67 | WebPortalModel.tt 68 | 69 | 70 | WebPortalModel.tt 71 | 72 | 73 | WebPortalModel.tt 74 | 75 | 76 | WebPortalModel.tt 77 | 78 | 79 | WebPortalModel.tt 80 | 81 | 82 | True 83 | True 84 | WebPortalModel.Context.tt 85 | 86 | 87 | True 88 | True 89 | WebPortalModel.tt 90 | 91 | 92 | True 93 | True 94 | WebPortalModel.edmx 95 | 96 | 97 | 98 | 99 | EntityModelCodeGenerator 100 | WebPortalModel.Designer.cs 101 | 102 | 103 | 104 | 105 | 106 | 107 | WebPortalModel.edmx 108 | 109 | 110 | 111 | 112 | TextTemplatingFileGenerator 113 | WebPortalModel.Context.cs 114 | WebPortalModel.edmx 115 | 116 | 117 | TextTemplatingFileGenerator 118 | WebPortalModel.edmx 119 | WebPortalModel.cs 120 | 121 | 122 | 123 | 124 | 125 | 126 | -------------------------------------------------------------------------------- /WebPortal/Controllers/PaymentController.cs: -------------------------------------------------------------------------------- 1 | using BusinessLayer; 2 | using PortalDataLayer; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Web; 7 | using System.Web.Mvc; 8 | 9 | namespace WebPortal.Controllers 10 | { 11 | public class PaymentController : Controller 12 | { 13 | // GET: Payment 14 | public ActionResult Index() 15 | { 16 | return View(); 17 | } 18 | 19 | // Emre Tuzunoglu Begin 20 | public ActionResult AddPayment() 21 | { 22 | TblOrder Order = null; 23 | TblUser User = (TblUser)Session["User"]; 24 | TBusinessLayer BusinessLayer = new TBusinessLayer(); 25 | string OMessage = ""; 26 | string Redirect = "~/Home"; 27 | // Bu kısmı TempData ile Cart sayfasından gelen verilerin boş olup olmadığı kontrol ettirilecek... 28 | if (TempData["CartOrders"].ToString() != "" && TempData["CartOrders"] != null) 29 | { 30 | if (((decimal)TempData["TotalPrice"]) != 0 && TempData["TotalPrice"] != null) 31 | { 32 | Order = new TblOrder(); 33 | Order.Name = Request.Form["NameSurname"].ToString(); 34 | Order.PhoneNumber = Request.Form["PhoneNumber"].ToString(); 35 | Order.Address = Request.Form["Adress"].ToString(); 36 | Order.City = Request.Form["City"].ToString(); 37 | Order.OrderedCarts = (string)TempData["CartOrders"]; 38 | Order.TotalPrice = (decimal)TempData["TotalPrice"]; 39 | Order.IsDelivered = false; 40 | Order.OrderDateTime = DateTime.Now; 41 | Order.UserId = User.UserId; 42 | } 43 | } 44 | 45 | if (User != null && Order != null) 46 | { 47 | if (BusinessLayer.CartIsEmpty(User.UserId)) 48 | { 49 | bool Succes = BusinessLayer.AddPayment(Order, out OMessage); 50 | 51 | if (Succes == true) 52 | { 53 | BusinessLayer.isUpdatedCart(User.UserId); 54 | 55 | TempData["ResultMessage"] = 56 | "'Siparişiniz Tamamlandı...\nAna Sayfaya Yönlendirliyorsunuz...'"; 57 | } 58 | else 59 | { 60 | TempData["ResultMessage"] = 61 | "'Siparişiniz Tamamlanamadı...\nSepetinizde Değişiklik olabilir...'"; 62 | Redirect = "~/Cart/Index"; 63 | } 64 | } 65 | } 66 | else 67 | { 68 | TempData["ResultMessage"] = 69 | "'Siparişiniz Tamamlanamadı...\nSepetinizde Değişiklik olabilir...'"; 70 | Redirect = "~/Cart/Index"; 71 | } 72 | 73 | return new RedirectResult(Redirect); 74 | } 75 | 76 | #region hhuseyin.demirtas (Kullanim disi) 77 | //hhuseyin.demirtas --- user icin kart tablosunda degisiklik var mı? 78 | public bool CheckCartUpdates() 79 | { 80 | TBusinessLayer BusinessLayer = new TBusinessLayer(); 81 | List ProductInfos = new List(); 82 | TblUser User = (TblUser)Session["User"]; 83 | bool result = false; 84 | 85 | string BeforeCart = ""; 86 | decimal BeforePrice = 0; 87 | string OMesage = ""; 88 | if (TempData["CartOrders"] != null && TempData["TotalPrice"] != null) 89 | { 90 | BeforeCart = TempData["CartOrders"].ToString(); 91 | BeforePrice = Convert.ToDecimal(TempData["TotalPrice"]); 92 | } 93 | 94 | if (User != null) 95 | { 96 | List CartItems = BusinessLayer.GetCartItems( 97 | User.UserId, 98 | out ProductInfos, 99 | out OMesage 100 | ); 101 | 102 | result = IsChanegd(CartItems, ProductInfos, BeforeCart, BeforePrice); 103 | } 104 | return result; 105 | } 106 | 107 | //hhuseyin.demirtas ---TempData ve guncel cart tablosu arasında kullanıcı için farklılık var mı? 108 | public bool IsChanegd( 109 | List CartItems, 110 | List ProductInfos, 111 | string BeforeCart, 112 | decimal BeforePrice 113 | ) 114 | { 115 | bool result = false; 116 | decimal LatestTotalPrice = 0; 117 | string LatestOrders = ""; 118 | for (int i = 0; i < CartItems.Count; i++) 119 | { 120 | decimal Discount = 0; 121 | Discount = (decimal)( 122 | ProductInfos[i].ProductPrice * (ProductInfos[i].ProductDiscount / 100) 123 | ); 124 | decimal LastPrice = (decimal)(ProductInfos[i].ProductPrice - Discount); 125 | 126 | LatestTotalPrice += (decimal)(CartItems[i].Quantity * LastPrice); 127 | LatestOrders += CartItems[i].ProductId.ToString() + ","; 128 | } 129 | 130 | if (BeforeCart != LatestOrders && BeforePrice != LatestTotalPrice) 131 | result = false; 132 | else 133 | { 134 | result = true; 135 | } 136 | 137 | return result; 138 | } 139 | #endregion 140 | } //paymet.html dosyasında inputlardan value değerlerini 22-26 satirlari arasinda aliyoruz. Daha sonra Daha sonra session var mi diye bakiyoruz. Giris yaptiysa session baslamıs oluyor ve bize useri donduruyor. 141 | } //Verileri saglikli bir sekilde ekleyip ekleyemedigimizi bool succes degiskeniyle kontrol ediyoruz. eger true ise isupdatedcart a userid gonderiyor. 142 | //Emre Tuzunoglu End 143 | -------------------------------------------------------------------------------- /WebPortal/Views/Login/Index.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "Index"; 4 | Layout = "~/Views/Shared/_LayoutMainPage.cshtml"; 5 | } 6 | 7 | 8 | 9 | 10 | 11 | 12 | 26 | 27 |
28 |
29 |
30 | 34 |
35 |
36 |
37 |
38 |
39 |
40 | 41 | 107 | 108 |
109 |
110 |
111 | 112 | 113 | 114 | 128 | 129 | 144 | 145 | 146 | 167 | 168 | -------------------------------------------------------------------------------- /WebPortal/Views/Payment/Index.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "Index"; 4 | Layout = "~/Views/Shared/_LayoutMainPage.cshtml"; 5 | } 6 | 7 | 8 |
9 | 10 |
11 |
12 | 16 |
17 |
18 | 19 | 20 |
21 |

Ödeme Sayfası

22 | @if (Session["User"] != null) 23 | { 24 |
25 | 26 |
27 |
28 |
29 |
30 | 31 |
32 |
33 | @using (Html.BeginForm("AddPayment", "Payment", FormMethod.Post)) 34 | { 35 |
36 |
37 |
38 |
39 |
40 | 41 | 42 |
43 |
44 |
45 |
46 | 47 | 48 |
49 |
50 |
51 |
52 | 53 | 54 |
55 |
56 |
57 |
58 |
59 | 60 | 61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 | 70 | 71 |
72 |
73 | 74 | 75 |
76 |
77 |
78 |
79 | 80 | 81 |
82 |
83 | 84 | 85 |
86 |
87 | 88 |
89 | } 90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 | } 98 | else 99 | { 100 |
101 |

Aradığınız Sayfa Bulunamadı...
Geçersiz Sayfa veya Kullanıcı İsteği...

102 |
103 | } 104 |
105 |
106 | 107 |
108 | 109 | -------------------------------------------------------------------------------- /WebPortal/Views/AboutUs/Index.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "Index"; 4 | Layout = "~/Views/Shared/_LayoutMainPage.cshtml"; 5 | } 6 | 7 |
8 |
9 |
10 | 14 |
15 |
16 | 17 |
18 |

Hakkımızda

19 |
20 |

Manav Melih, içerisinde binlerce ürün barındırır, dakikalar içerisinde dilediğiniz ürünü ayağınıza getirir.

21 |
22 |

Zaman hepimiz için çok değerli, bu sebeple hayatınızı kolaylaştırmayı ilke edindik. Her geçen gün bir adım daha ileriye gitme amacıyla ürün yelpazemize, aklınıza gelebilecek her ürünü ekliyoruz.

23 |
24 |

Artık ihtiyaçlarınızı karşılamak için evinizden çıkmaya, konforunuzu bozmaya ve dakikalarca kasada beklemeye son!

25 |
26 | 27 |

28 |

Neden Manav Melih?

29 |
30 |

Dakikalar İçinde Hızlı Teslimat

31 |
32 |

Manav Melih olarak, tercih edenleri hiçbir zaman bekletmemeyi prensip edindi, rakibi bile olamayacak diğer firmalar gibi sadece araçlar ve motokuryelerle değil, drone'larla bile dakikalar içerisinde istediğiniz ürünleri ayağınıza getiriyoruz.

33 |
34 |

Canlı Sipariş Takibi

35 |
36 |

Siparişinizi verdikten sonra arkanıza yaslanın ve değerli kuryelerimizin, araçlarımızın ve drone'larımızın takibini telefonunuzdan takip edebilirsiniz. Drone'larımızı telefonlarınızdan kontrol edişiniz sizleri adeta Farming Simulator havasına sokacak :)

37 |
38 |

Kapıda Ödeme

39 |
40 |

Bazıları gibi sadece kartla çalışmıyoruz :) Dilerseniz sipariş verdiğiniz anda dilerseniz kapıda ödeme ile alışveriş yapabileceksiniz. Sadece kartla değil dilerseniz nakit olarak da ödeyebilirsiniz, böylece bir şeyleri bedava alıyor hissiyatını iliklerinize kadar yaşayabilirsiniz :)

41 |
42 |

Emeği Geçenler

43 |
44 |

Bu proje, Back-End Bootcamp Ekibi tarafından geliştirilmiştir. Hocamız Tunç Güleç başta olmak üzere, emek veren tüm arkadaşlarımıza teşekkür ederiz...

45 |
46 | 47 | 48 |
49 | 50 |
51 |
52 | 53 | 54 | 55 |
56 |
57 |

Emeği Geçenler

58 |
59 |
60 |

Tunç Güleç

61 |

Master

62 |
    63 |
64 |
65 |
66 |

Akın Can Cesaretli

67 |

Coder

68 |
    69 |
70 |
71 |
72 |

Belgin Çoban

73 |

Coder

74 |
    75 |
76 |
77 |
78 |

Buket Soyhan

79 |

Coder

80 |
    81 |
82 |
83 |
84 |

Büşra Şimşek

85 |

Coder

86 |
    87 |
88 |
89 |
90 |

Celal Serdar Ergün

91 |

Coder

92 |
    93 |
94 |
95 |
96 |

Egemen Uluçam

97 |

Teamleader

98 |
    99 |
100 |
101 |
102 |

Emre Tüzünoğlu

103 |

Coder

104 |
    105 |
106 |
107 |
108 |

Fırat Seven

109 |

Coder

110 |
    111 |
112 |
113 |
114 |

Gökhan Kaya

115 |

Assistant

116 |
    117 |
118 |
119 |
120 |

Hasan Hüseyin Demirtaş

121 |

Coder

122 |
    123 |
124 |
125 |
126 |

Hüseyin Bilgiç

127 |

Coder

128 |
    129 |
130 |
131 |
132 |

Melih Özaslan

133 |

Assistant

134 |
    135 |
136 |
137 |
138 |

Tayfun Fırtına

139 |

Assistant

140 |
    141 |
142 |
143 |
144 |

Vejdi Burak

145 |

Coder

146 |
    147 |
148 |
149 |
150 |
151 |
152 |
153 | -------------------------------------------------------------------------------- /WebPortal/Views/Cart/Index.cshtml: -------------------------------------------------------------------------------- 1 | @*hhuseyin.demirtas*@ 2 | @{ 3 | ViewBag.Title = "Cart"; 4 | Layout = "~/Views/Shared/_LayoutMainPage.cshtml"; 5 | } 6 | 7 | @{ 8 | List CartList = new List(); 9 | List ProductInfos = new List(); 10 | 11 | 12 | if (ViewBag.CartList != null && ViewBag.ProductInfos != null) 13 | { 14 | CartList = (List)ViewBag.CartList; 15 | ProductInfos = (List)ViewBag.ProductInfos; 16 | } 17 | } 18 | 19 | 142 | -------------------------------------------------------------------------------- /WebPortal/wwwroot/css/easy-responsive-tabs.css: -------------------------------------------------------------------------------- 1 | ul.resp-tabs-list, p { 2 | margin: 0px; 3 | padding: 0px; 4 | } 5 | 6 | .resp-tabs-list li { 7 | font-weight: 400; 8 | font-size: 20px; 9 | letter-spacing: 2px; 10 | display: inline-block; 11 | padding: 13px 15px; 12 | margin: 0 4px 0 0; 13 | list-style: none; 14 | cursor: pointer; 15 | float: left; 16 | } 17 | 18 | .resp-tabs-container { 19 | padding: 0px; 20 | background-color: #fff; 21 | clear: left; 22 | } 23 | 24 | h2.resp-accordion { 25 | cursor: pointer; 26 | padding: 5px; 27 | display: none; 28 | } 29 | 30 | .resp-tab-content { 31 | display: none; 32 | padding: 25px 60px; 33 | } 34 | 35 | .resp-tab-active { 36 | border: 1px solid #212121 !important; 37 | border-bottom: none; 38 | margin-bottom: -1px !important; 39 | padding: 12px 14px 14px 14px !important; 40 | border-bottom: 0px #fff solid !important; 41 | } 42 | .resp-vtabs .resp-tabs-list li i { 43 | color: #000000; 44 | margin-right: 20px; 45 | padding: 15px 10px; 46 | width:50px; 47 | height: 50px; 48 | text-align: center; 49 | } 50 | .resp-vtabs .resp-tabs-list li i.fa-mobile { 51 | padding: 10px 10px; 52 | } 53 | .resp-vtabs .resp-tabs-list li i.fa-mobile { 54 | font-size:28px; 55 | } 56 | .resp-vtabs li.resp-tab-active i { 57 | color: #fbfbfb; 58 | padding: 14px 10px; 59 | border-radius: 0px; 60 | width: 50px; 61 | background: #000; 62 | margin-right: 20px; 63 | height: 50px; 64 | } 65 | .resp-vtabs li.resp-tab-active i.fa-mobile { 66 | padding: 10px 10px; 67 | } 68 | .resp-tab-active { 69 | border-bottom: none; 70 | background-color: #212121!important; 71 | color: #fff; 72 | } 73 | 74 | .resp-content-active, .resp-accordion-active { 75 | display: block; 76 | } 77 | 78 | .resp-tab-content { 79 | border: 1px solid #212121; 80 | border-top-color: #212121; 81 | } 82 | 83 | h2.resp-accordion { 84 | font-size: 13px; 85 | border: 1px solid #c1c1c1; 86 | border-top: 0px solid #c1c1c1; 87 | margin: 0px; 88 | padding: 10px 15px; 89 | } 90 | 91 | h2.resp-tab-active { 92 | border-bottom: 0px solid #c1c1c1 !important; 93 | margin-bottom: 0px !important; 94 | padding: 10px 15px !important; 95 | } 96 | 97 | h2.resp-tab-title:last-child { 98 | border-bottom: 12px solid #c1c1c1 !important; 99 | background: blue; 100 | } 101 | 102 | /*-----------Vertical tabs-----------*/ 103 | .agileits-tab_nav { 104 | float: left; 105 | width: 30%; 106 | margin-top: 0!important; 107 | min-height: 650px; 108 | } 109 | ul.resp-tabs-list.hor_1 { 110 | margin-top: 0!important; 111 | } 112 | a.w3ls-ads { 113 | text-decoration: none; 114 | color: #0099e5; 115 | font-size: 15px; 116 | margin: 25px 0 0px 0; 117 | display: block; 118 | text-align: center; 119 | } 120 | a.w3ls-ads:hover { 121 | color:#ff4c4c; 122 | } 123 | .resp-vtabs .resp-tabs-list li { 124 | display: block; 125 | padding: 0px 0px !important; 126 | margin: 0 0 20px; 127 | cursor: pointer; 128 | float: none; 129 | border: 1px solid #F5F5F5; 130 | border-color: rgb(241, 241, 241)!important; 131 | background-color: #ffffff!important; 132 | } 133 | 134 | .resp-vtabs .resp-tabs-container { 135 | padding: 0px; 136 | background-color: rgba(243, 243, 243, 0.25); 137 | border: none; 138 | float: left; 139 | width: 70%; 140 | border: 1px solid transparent !important; 141 | border-radius: 0; 142 | clear: none; 143 | min-height: 650px; 144 | } 145 | 146 | .resp-vtabs .resp-tab-content { 147 | border: none; 148 | word-wrap: break-word; 149 | } 150 | /*-- 151 | li.resp-tab-item.hor_1.resp-tab-active:after { 152 | content: ''; 153 | position: absolute; 154 | right: -18px; 155 | top: 6px; 156 | border-left: 1px solid #5AB1D0; 157 | border-right: 0px solid #5AB1D0; 158 | border-bottom: 1px solid #FFFFFF; 159 | transform: rotate(134deg); 160 | border-top: 1px solid #5AB1D0; 161 | padding: 0 33px 33px 0px; 162 | } 163 | --*/ 164 | 165 | .resp-vtabs li.resp-tab-active { 166 | position: relative; 167 | z-index: 1; 168 | margin-right: 0px !important; 169 | padding: 0px 0px 0px 0px !important; 170 | margin: 0 0 20px 0 !important; 171 | background-color: #28ece3! important; 172 | background: #28ece3; 173 | color: #fff; 174 | position: relative; 175 | } 176 | .resp-vtabs li.resp-tab-active:after { 177 | content: ''; 178 | border-top: 36px solid #28ece3; 179 | border-right: 0px solid #28ece3; 180 | border-left: 36px solid rgba(40, 236, 227, 0); 181 | transform: rotate(45deg); 182 | position: absolute; 183 | top: 7px; 184 | right: -17px; 185 | } 186 | .resp-arrow { 187 | width: 0; 188 | height: 0; 189 | float: right; 190 | margin-top: 3px; 191 | border-left: 6px solid transparent; 192 | border-right: 6px solid transparent; 193 | border-top: 12px solid #c1c1c1; 194 | } 195 | 196 | h2.resp-tab-active span.resp-arrow { 197 | border: none; 198 | border-left: 6px solid transparent; 199 | border-right: 6px solid transparent; 200 | border-bottom: 12px solid #9B9797; 201 | } 202 | 203 | /*-----------Accordion styles-----------*/ 204 | h2.resp-tab-active { 205 | background: #DBDBDB;/* !important;*/ 206 | } 207 | 208 | .resp-easy-accordion h2.resp-accordion { 209 | display: block; 210 | } 211 | 212 | .resp-easy-accordion .resp-tab-content { 213 | border: 1px solid #c1c1c1; 214 | } 215 | 216 | .resp-easy-accordion .resp-tab-content:last-child { 217 | border-bottom: 1px solid #c1c1c1;/* !important;*/ 218 | } 219 | 220 | .resp-jfit { 221 | width: 100%; 222 | margin: 0px; 223 | } 224 | 225 | .resp-tab-content-active { 226 | display: block; 227 | } 228 | 229 | h2.resp-accordion:first-child { 230 | border-top: 1px solid #c1c1c1;/* !important;*/ 231 | } 232 | 233 | /*Here your can change the breakpoint to set the accordion, when screen resolution changed*/ 234 | @media only screen and (max-width: 900px) { 235 | .resp-tabs-list li { 236 | font-size: 18px; 237 | } 238 | } 239 | @media only screen and (max-width: 768px) { 240 | h2.resp-accordion.hor_1 i { 241 | width: 45px; 242 | text-align: center; 243 | color: #6d6d6d; 244 | font-size: 18px; 245 | } 246 | ul.resp-tabs-list { 247 | display: none; 248 | } 249 | 250 | h2.resp-accordion { 251 | display: block; 252 | } 253 | 254 | .resp-vtabs .resp-tab-content { 255 | border: 1px solid #C1C1C1; 256 | } 257 | 258 | .resp-vtabs .resp-tabs-container { 259 | border: none; 260 | width: 100%; 261 | min-height: 100px; 262 | clear: none; 263 | } 264 | 265 | .resp-accordion-closed { 266 | display: none !important; 267 | } 268 | 269 | .resp-vtabs .resp-tab-content:last-child { 270 | border-bottom: 1px solid #c1c1c1 !important; 271 | } 272 | } 273 | @media (max-width: 768px){ 274 | h2.resp-accordion { 275 | font-size: 17px; 276 | border: 1px solid #c1c1c1; 277 | border-top: 0px solid #c1c1c1; 278 | margin: 0px; 279 | padding: 15px 15px; 280 | } 281 | .agileits-tab_nav { 282 | float: none; 283 | width: 100%; 284 | margin-top: 0!important; 285 | min-height: auto; 286 | margin-bottom: 0px; 287 | } 288 | } 289 | @media (max-width: 480px){ 290 | .resp-tab-content { 291 | padding: 25px 35px; 292 | } 293 | } 294 | @media (max-width: 414px){ 295 | .resp-tab-content { 296 | padding: 15px 25px; 297 | } 298 | } 299 | @media (max-width: 320px){ 300 | .resp-tab-content { 301 | padding: 15px 15px; 302 | } 303 | } -------------------------------------------------------------------------------- /WebPortal/Views/Products/LowPrice.cshtml: -------------------------------------------------------------------------------- 1 | 2 | @{ 3 | ViewBag.Title = "LowPrice"; 4 | Layout = "~/Views/Shared/_LayoutMainPage.cshtml"; 5 | 6 | List GetPriceProducts = new List(); 7 | if (ViewBag.LowProductsList != null) 8 | { 9 | GetPriceProducts = ViewBag.LowProductsList; 10 | } 11 | } 12 |
13 |
14 |
15 | 19 |
20 |
21 |
22 |

Tüm Ürünler

23 | 24 | 27 | 51 | En düşük fiyata göre listelendi. 52 |

53 | 54 |
55 |
56 | @{ 57 | if (ViewBag.UrunAdi != null) 58 | { 59 | 60 | 61 | 62 | } 63 | 64 | } 65 |
66 | 67 | @{ 68 | foreach (var Product in GetPriceProducts) 69 | { 70 | if (Product.ProductDiscount != 0) 71 | { 72 |
73 |
74 |
75 | 76 |
77 |
78 |
79 |
80 |  81 |

@Product.ProductName

82 |

@Product.PriceOnSale ₺@Product.ProductPrice ₺

83 |
84 |
85 | @using (Html.BeginForm("AddProductAction", "Home", FormMethod.Post)) 86 | { 87 | 88 |
89 | 90 | 91 | 92 |
93 | } 94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 | } 102 | else 103 | { 104 |
105 |
106 |
107 | 108 |
109 |
110 |
111 |
112 |  113 |

@Product.ProductName

114 |

@Product.ProductPrice ₺

115 |
116 |
117 | @using (Html.BeginForm("AddProductAction", "Home", FormMethod.Post)) 118 | { 119 | 120 |
121 | 122 | 123 | 124 |
125 | } 126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 | } 134 | 135 | } 136 | } 137 | 138 | 139 |
140 |
141 | 142 |
143 |
144 |
145 | 146 | --------------------------------------------------------------------------------