diff --git a/Store.Data/App.config b/Store.Data/App.config index 7e1d79c..13ecece 100644 --- a/Store.Data/App.config +++ b/Store.Data/App.config @@ -1,9 +1,9 @@  - +
- + diff --git a/Store.Data/Repositories/CategoryRepository.cs b/Store.Data/Repositories/CategoryRepository.cs index a1013e7..01a6be3 100644 --- a/Store.Data/Repositories/CategoryRepository.cs +++ b/Store.Data/Repositories/CategoryRepository.cs @@ -15,9 +15,11 @@ public CategoryRepository(IDbFactory dbFactory) public Category GetCategoryByName(string categoryName) { - var category = this.DbContext.Categories.Where(c => c.Name == categoryName).FirstOrDefault(); + //var category = this.DbContext.Categories.Where(c => c.Name == categoryName).FirstOrDefault(); - return category; + return null; + + //return category; } public override void Update(Category entity) diff --git a/Store.Data/Store.Data.csproj b/Store.Data/Store.Data.csproj index 4f91736..20f7eb3 100644 --- a/Store.Data/Store.Data.csproj +++ b/Store.Data/Store.Data.csproj @@ -32,11 +32,13 @@ 4 - - ..\packages\EntityFramework.6.1.2\lib\net45\EntityFramework.dll + + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll + True - - ..\packages\EntityFramework.6.1.2\lib\net45\EntityFramework.SqlServer.dll + + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll + True diff --git a/Store.Data/StoreEntities.cs b/Store.Data/StoreEntities.cs index 8ebc7fa..0b12148 100644 --- a/Store.Data/StoreEntities.cs +++ b/Store.Data/StoreEntities.cs @@ -13,8 +13,8 @@ public class StoreEntities : DbContext { public StoreEntities() : base("StoreEntities") { } - public DbSet Gadgets { get; set; } - public DbSet Categories { get; set; } + //public DbSet Gadgets { get; set; } + //public DbSet Categories { get; set; } public virtual void Commit() { @@ -23,8 +23,8 @@ public virtual void Commit() protected override void OnModelCreating(DbModelBuilder modelBuilder) { - modelBuilder.Configurations.Add(new GadgetConfiguration()); - modelBuilder.Configurations.Add(new CategoryConfiguration()); + //modelBuilder.Configurations.Add(new GadgetConfiguration()); + //modelBuilder.Configurations.Add(new CategoryConfiguration()); } } } diff --git a/Store.Data/StoreSeedData.cs b/Store.Data/StoreSeedData.cs index 1f32aeb..c405816 100644 --- a/Store.Data/StoreSeedData.cs +++ b/Store.Data/StoreSeedData.cs @@ -12,10 +12,9 @@ public class StoreSeedData : DropCreateDatabaseIfModelChanges { protected override void Seed(StoreEntities context) { - GetCategories().ForEach(c => context.Categories.Add(c)); - GetGadgets().ForEach(g => context.Gadgets.Add(g)); - - context.Commit(); + //GetCategories().ForEach(c => context.Categories.Add(c)); + //GetGadgets().ForEach(g => context.Gadgets.Add(g)); + //context.Commit(); } private static List GetCategories() diff --git a/Store.Data/packages.config b/Store.Data/packages.config index ee9ebc0..6138937 100644 --- a/Store.Data/packages.config +++ b/Store.Data/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file diff --git a/Store.Web/App_Start/Bootstrapper.cs b/Store.Web/App_Start/Bootstrapper.cs index be9c47b..c5ba43c 100644 --- a/Store.Web/App_Start/Bootstrapper.cs +++ b/Store.Web/App_Start/Bootstrapper.cs @@ -33,6 +33,7 @@ private static void SetAutofacContainer() builder.RegisterAssemblyTypes(typeof(GadgetRepository).Assembly) .Where(t => t.Name.EndsWith("Repository")) .AsImplementedInterfaces().InstancePerRequest(); + // Services builder.RegisterAssemblyTypes(typeof(GadgetService).Assembly) .Where(t => t.Name.EndsWith("Service")) diff --git a/Store.Web/App_Start/BundleConfig.cs b/Store.Web/App_Start/BundleConfig.cs index 804e741..ba6d64c 100644 --- a/Store.Web/App_Start/BundleConfig.cs +++ b/Store.Web/App_Start/BundleConfig.cs @@ -10,10 +10,44 @@ public class BundleConfig { public static void RegisterBundles(BundleCollection bundles) { + + + #region Example CSS and JS Bundles bundles.Add(new ScriptBundle("~/bootstrap/js").Include("~/js/bootstrap.js", "~/js/site.js")); - bundles.Add(new StyleBundle("~/bootstrap/css").Include("~/css/bootstrap.css", "~/css/site.css")); + bundles.Add(new StyleBundle("~/bootstrap/css").Include("~/css/bootstrap.css", "~/css/site.css")); + #endregion + + #region CV CSS Bundles + bundles.Add(new StyleBundle("~/cv/css") + .Include( + "~/bstemplate/bootstrap/css/bootstrap.min.css", + "~/bstemplate/css/owl.theme.css", + "~/bstemplate/css/owl.carousel.css", + "~/bstemplate/css/magnific-popup.css", + "~/bstemplate/css/simpletextrotator.css", + "~/bstemplate/css/font-awesome.min.css", + "~/bstemplate/css/animate.css" + )); + #endregion + #region CV JS Bundles + bundles.Add(new ScriptBundle("~/cv/js") + .Include( + "~/bstemplate/js/jquery-1.11.0.min.js", + "~/bstemplate/bootstrap/js/bootstrap.min.js", + "~/bstemplate/js/jquery.backstretch.min.js", + "~/bstemplate/js/owl.carousel.min.js", + "~/bstemplate/js/jquery.magnific-popup.min.js", + "~/bstemplate/js/jquery.simple-text-rotator.min.js", + "~/bstemplate/js/jquery.waypoints.js", + "~/bstemplate/js/jquery.countTo.js", + "~/bstemplate/js/wow.min.js", + "~/bstemplate/js/smoothscroll.js", + "~/bstemplate/js/jquery.fitvids.js" + )); + #endregion BundleTable.EnableOptimizations = true; + } } } \ No newline at end of file diff --git a/Store.Web/Controllers/CVController.cs b/Store.Web/Controllers/CVController.cs new file mode 100644 index 0000000..ef17e03 --- /dev/null +++ b/Store.Web/Controllers/CVController.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; + +namespace Store.Web.Controllers +{ + public class CVController : Controller + { + // GET: CV + public ActionResult Index() + { + return View(); + } + + [ChildActionOnly] + public ActionResult IntroductionSection() + { + return PartialView("_IntroductionSection"); + } + + [ChildActionOnly] + public ActionResult ContactSection() + { + return PartialView("_ContactSection"); + } + + [ChildActionOnly] + public ActionResult ProfileSection() + { + return PartialView("_ProfileSection"); + } + + [ChildActionOnly] + public ActionResult StatsSection() + { + return PartialView("_StatsSection"); + } + + [ChildActionOnly] + public ActionResult CalloutSection() + { + return PartialView("_CalloutSection"); + } + + [ChildActionOnly] + public ActionResult ClientSection() + { + return PartialView("_ClientSection"); + } + + [ChildActionOnly] + public ActionResult ResumeSection() + { + return PartialView("_ResumeSection"); + } + + [ChildActionOnly] + public ActionResult PortfolioSection() + { + return PartialView("_PortfolioSection"); + } + + [ChildActionOnly] + public ActionResult FooterContactSection() + { + return PartialView("_FooterContactSection"); + } + + [ChildActionOnly] + public ActionResult FooterSection() + { + return PartialView("_FooterSection"); + } + + [ChildActionOnly] + public ActionResult ServiceSection() + { + return PartialView("_ServiceSection"); + } + + } +} \ No newline at end of file diff --git a/Store.Web/Controllers/HomeController.cs b/Store.Web/Controllers/HomeController.cs index f19dafa..eb1493a 100644 --- a/Store.Web/Controllers/HomeController.cs +++ b/Store.Web/Controllers/HomeController.cs @@ -24,6 +24,9 @@ public HomeController(ICategoryService categoryService, IGadgetService gadgetSer // GET: Home public ActionResult Index(string category = null) { + + return RedirectToAction("Index", "CV"); + IEnumerable viewModelGadgets; IEnumerable categories; diff --git a/Store.Web/Controllers/TestController.cs b/Store.Web/Controllers/TestController.cs new file mode 100644 index 0000000..8961e9c --- /dev/null +++ b/Store.Web/Controllers/TestController.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; + +namespace Store.Web.Controllers +{ + public class TestController : Controller + { + // GET: Test + public ActionResult Index() + { + return View(); + } + } +} \ No newline at end of file diff --git a/Store.Web/Global.asax.cs b/Store.Web/Global.asax.cs index 5bbed4f..a5485b6 100644 --- a/Store.Web/Global.asax.cs +++ b/Store.Web/Global.asax.cs @@ -15,7 +15,7 @@ public class MvcApplication : System.Web.HttpApplication protected void Application_Start() { // Init database - System.Data.Entity.Database.SetInitializer(new StoreSeedData()); + //System.Data.Entity.Database.SetInitializer(new StoreSeedData()); AreaRegistration.RegisterAllAreas(); RouteConfig.RegisterRoutes(RouteTable.Routes); diff --git a/Store.Web/Mappings/ViewModelToDomainMappingProfile.cs b/Store.Web/Mappings/ViewModelToDomainMappingProfile.cs index 52ed942..078ca06 100644 --- a/Store.Web/Mappings/ViewModelToDomainMappingProfile.cs +++ b/Store.Web/Mappings/ViewModelToDomainMappingProfile.cs @@ -23,6 +23,8 @@ protected override void Configure() .ForMember(g => g.Price, map => map.MapFrom(vm => vm.GadgetPrice)) .ForMember(g => g.Image, map => map.MapFrom(vm => vm.File.FileName)) .ForMember(g => g.CategoryID, map => map.MapFrom(vm => vm.GadgetCategory)); + + } } } \ No newline at end of file diff --git a/Store.Web/Store.Web.csproj b/Store.Web/Store.Web.csproj index 39fa28a..0fe2ce1 100644 --- a/Store.Web/Store.Web.csproj +++ b/Store.Web/Store.Web.csproj @@ -19,7 +19,6 @@ - ..\packages\WebGrease.1.5.2\lib ..\ true @@ -57,15 +56,17 @@ ..\packages\AutoMapper.3.3.1\lib\net40\AutoMapper.Net4.dll - False - ..\packages\EntityFramework.6.1.2\lib\net45\EntityFramework.dll + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll + True - - ..\packages\EntityFramework.6.1.2\lib\net45\EntityFramework.SqlServer.dll + + ..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.SqlServer.dll + True - - ..\packages\Newtonsoft.Json.5.0.4\lib\net45\Newtonsoft.Json.dll + + ..\packages\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll + True @@ -76,9 +77,33 @@ + + ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll + True + + + ..\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll + True + ..\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll + + ..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll + True + + + ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll + True + + + ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll + True + + + ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll + True + @@ -86,37 +111,72 @@ - - ..\packages\WebGrease.1.5.2\lib\WebGrease.dll + + ..\packages\WebGrease.1.6.0\lib\WebGrease.dll + True - - ..\packages\Microsoft.AspNet.Razor.3.1.2\lib\net45\System.Web.Razor.dll - - - ..\packages\Microsoft.AspNet.Webpages.3.1.2\lib\net45\System.Web.Webpages.dll - - - ..\packages\Microsoft.AspNet.Webpages.3.1.2\lib\net45\System.Web.Webpages.Deployment.dll - - - ..\packages\Microsoft.AspNet.Webpages.3.1.2\lib\net45\System.Web.Webpages.Razor.dll - - - ..\packages\Microsoft.AspNet.Webpages.3.1.2\lib\net45\System.Web.Helpers.dll - ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll - - ..\packages\Microsoft.AspNet.Mvc.5.1.2\lib\net45\System.Web.Mvc.dll - True - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -142,7 +202,9 @@ + + Global.asax @@ -165,6 +227,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Web.config diff --git a/Store.Web/ViewModels/CategoryViewModel.cs b/Store.Web/ViewModels/CategoryViewModel.cs index 59b5b87..b1b113f 100644 --- a/Store.Web/ViewModels/CategoryViewModel.cs +++ b/Store.Web/ViewModels/CategoryViewModel.cs @@ -10,7 +10,6 @@ public class CategoryViewModel { public int CategoryID { get; set; } public string Name { get; set; } - public List Gadgets { get; set; } } } \ No newline at end of file diff --git a/Store.Web/ViewModels/GadgetViewModel.cs b/Store.Web/ViewModels/GadgetViewModel.cs index 475ae44..243851a 100644 --- a/Store.Web/ViewModels/GadgetViewModel.cs +++ b/Store.Web/ViewModels/GadgetViewModel.cs @@ -12,7 +12,6 @@ public class GadgetViewModel public string Description { get; set; } public decimal Price { get; set; } public string Image { get; set; } - public int CategoryID { get; set; } } } \ No newline at end of file diff --git a/Store.Web/Views/CV/Index.cshtml b/Store.Web/Views/CV/Index.cshtml new file mode 100644 index 0000000..862c074 --- /dev/null +++ b/Store.Web/Views/CV/Index.cshtml @@ -0,0 +1,52 @@ +@{ + ViewBag.Title = "Index"; + Layout = "~/Views/Shared/_CVLayout.cshtml"; + ViewBag.Title = "SimonHuang - Resume"; + ViewBag.Owner = "Simon Huang"; +} + + +@Html.Action("IntroductionSection"); + + + + +@Html.Action("ContactSection"); + + + + +@Html.Action("ProfileSection"); + + + +@Html.Action("StatsSection") + + + +@Html.Action("ServiceSection"); + + + +@Html.Action("CalloutSection"); + + + +@Html.Action("ResumeSection"); + + + +@Html.Action("ClientSection"); + + + +@Html.Action("PortfolioSection"); + + + +@Html.Action("FooterContactSection"); + + + +@Html.Action("FooterSection") + diff --git a/Store.Web/Views/CV/_CalloutSection.cshtml b/Store.Web/Views/CV/_CalloutSection.cshtml new file mode 100644 index 0000000..846abb5 --- /dev/null +++ b/Store.Web/Views/CV/_CalloutSection.cshtml @@ -0,0 +1,19 @@ +
+
+ +
+ + + +
+

I'm currently available for freelance work.

+

I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend.

+ Contact me +
+ +
+ +
+
diff --git a/Store.Web/Views/CV/_ClientSection.cshtml b/Store.Web/Views/CV/_ClientSection.cshtml new file mode 100644 index 0000000..86b2fc8 --- /dev/null +++ b/Store.Web/Views/CV/_ClientSection.cshtml @@ -0,0 +1,54 @@ + +
+ +
+ +
+ + + +
+ + + +
+ +
+ +
+ +
\ No newline at end of file diff --git a/Store.Web/Views/CV/_ContactSection.cshtml b/Store.Web/Views/CV/_ContactSection.cshtml new file mode 100644 index 0000000..e1dbf4b --- /dev/null +++ b/Store.Web/Views/CV/_ContactSection.cshtml @@ -0,0 +1,31 @@ + +
+
+ +
+ +
+ +
+ +
+
+ +
(1234) 1234-5678-1011
+
+
+ +
+
+ +
144 Some Street, Some City, Some Country
+
+
+ +
+ +
+
\ No newline at end of file diff --git a/Store.Web/Views/CV/_FooterContactSection.cshtml b/Store.Web/Views/CV/_FooterContactSection.cshtml new file mode 100644 index 0000000..89124ef --- /dev/null +++ b/Store.Web/Views/CV/_FooterContactSection.cshtml @@ -0,0 +1,58 @@ + +
+ +
+ +
+ +
+

Contact Us

+

Drop us a line or give us a ring. We love to hear you.

+
+ +
+ +

I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend.

+ + + +
+ +
+ +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ + + +
+ +
+ +
+ +
+ +
+ +
\ No newline at end of file diff --git a/Store.Web/Views/CV/_FooterSection.cshtml b/Store.Web/Views/CV/_FooterSection.cshtml new file mode 100644 index 0000000..540979c --- /dev/null +++ b/Store.Web/Views/CV/_FooterSection.cshtml @@ -0,0 +1,17 @@ +
+ +
+ +
+ +
+

+ © 2014 Mark Stone, All Rights Reserved. +

+
+ +
+ +
+ +
diff --git a/Store.Web/Views/CV/_IntroductionSection.cshtml b/Store.Web/Views/CV/_IntroductionSection.cshtml new file mode 100644 index 0000000..e1500f8 --- /dev/null +++ b/Store.Web/Views/CV/_IntroductionSection.cshtml @@ -0,0 +1,34 @@ +@{ + Layout = null; + var tempString = new List() { "Something1.", "Something2.", "Something3." }; +} + +
+ @Html.Hidden("introPic", Url.Content("bstemplate/images/bg4.jpg")); +
+ +
+
+
+

Hello, I'm Simon Huang

+

+ + @foreach(var temp in tempString) + { + + @temp | + + } + +

+
+ +
+
+
+
+
+
+
+ +
\ No newline at end of file diff --git a/Store.Web/Views/CV/_PortfolioSection.cshtml b/Store.Web/Views/CV/_PortfolioSection.cshtml new file mode 100644 index 0000000..99645dd --- /dev/null +++ b/Store.Web/Views/CV/_PortfolioSection.cshtml @@ -0,0 +1,100 @@ +
+ + + +
diff --git a/Store.Web/Views/CV/_ProfileSection.cshtml b/Store.Web/Views/CV/_ProfileSection.cshtml new file mode 100644 index 0000000..76138e7 --- /dev/null +++ b/Store.Web/Views/CV/_ProfileSection.cshtml @@ -0,0 +1,76 @@ +
+ +
+ +
+ +
+

Mark Stone

+

Visual Designer. Front-end Developer. C# Programmer.

+
+ + + +
+ +
+

Skillset

+ +
UX Design
+
+
+
+
+
+
+ +
HTML / CSS3 / SASS
+
+
+
+
+
+
+ +
Javascript
+
+
+
+
+
+
+ +
Ajax
+
+
+
+
+
+
+
+ +
+

Social Profiles

+
    +
  • +
  • +
  • +
  • +
+
+ +
+ +
+

Profesional Profile

+

I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend. I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend. I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend. I am so happy, my dear friend.

+

I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend.

+
+ +
+ +
+ +
diff --git a/Store.Web/Views/CV/_ResumeSection.cshtml b/Store.Web/Views/CV/_ResumeSection.cshtml new file mode 100644 index 0000000..62f7f0a --- /dev/null +++ b/Store.Web/Views/CV/_ResumeSection.cshtml @@ -0,0 +1,81 @@ +
+
+
+ +
+

Resume

+

My education and experience.

+
+ +
+
+ +
+

Education

+
+ +
+

Computer science

+

I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend.

+ +
+ +
+

Stanford University

+ 2013 - 2014 +
+
+ +
+

Visual designer

+

I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend.

+ +
+ +
+

St. Patrick University

+ 2013 - 2014 +
+
+ +
+
+ +
+

Experience

+
+ +
+

Front-end developer / php programmer

+

I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend.

+ +
+ +
+

Google

+ 2013 - 2014 +
+
+ +
+

C# programmer

+

I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend.

+ +
+ +
+

Microsoft

+ 2013 - 2014 +
+
+ +
+
+ + + +
+
+
diff --git a/Store.Web/Views/CV/_ServiceSection.cshtml b/Store.Web/Views/CV/_ServiceSection.cshtml new file mode 100644 index 0000000..e4bd4dc --- /dev/null +++ b/Store.Web/Views/CV/_ServiceSection.cshtml @@ -0,0 +1,100 @@ +
+ +
+ +
+ +
+

What i can do

+

My Services.

+
+ +
+ +
+ +
+
+
+ +
+

Text rotator

+
+

I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend.

+
+
+
+ +
+
+
+ +
+

Slideshow

+
+

I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend.

+
+
+
+ +
+
+
+ +
+

Easy configure

+
+

I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend.

+
+
+
+ +
+ +
+ +
+
+
+ +
+

Clear code

+
+

I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend.

+
+
+
+ +
+
+
+ +
+

Responsive design

+
+

I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend.

+
+
+
+ +
+
+
+ +
+

Support

+
+

I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine. I am so happy, my dear friend.

+
+
+
+ +
+ +
+ +
+ +
+ +
diff --git a/Store.Web/Views/CV/_StatsSection.cshtml b/Store.Web/Views/CV/_StatsSection.cshtml new file mode 100644 index 0000000..bdc28ec --- /dev/null +++ b/Store.Web/Views/CV/_StatsSection.cshtml @@ -0,0 +1,42 @@ +
+ +
+ +
+ + + +
+
+
+

+
+

Cup of coffee

+
+
+ +
+
+
+

+
+

Line of code

+
+
+ +
+
+
+

+

+
+

Happy customers

+
+
+ +
+ +
+ +
diff --git a/Store.Web/Views/Home/Index.cshtml b/Store.Web/Views/Home/Index.cshtml index 4f9b585..06f7dbb 100644 --- a/Store.Web/Views/Home/Index.cshtml +++ b/Store.Web/Views/Home/Index.cshtml @@ -17,6 +17,8 @@
@*@Html.DisplayFor(modelItem => item.Name)*@ @Html.ActionLink("View all " + item.Name, "Index", new { category = item.Name }, new { @class = "pull-right" }) + + @using (Html.BeginForm("Filter", "Home", new { category = item.Name }, FormMethod.Post, new { @class = "navbar-form" })) { @Html.TextBox("gadgetName", null, new { @class = "form-control", placeholder = "Search in " + item.Name }) @@ -27,6 +29,7 @@ @foreach (var gadget in item.Gadgets) { @Html.Partial("Gadget", gadget) + }