Products { get; set; }
+
+ public decimal CalculatorProdutTotal()
+ {
+ return calc.ValueProducts(Products);
+ }
+ }
+}
\ No newline at end of file
diff --git a/EssentialTools/Properties/AssemblyInfo.cs b/EssentialTools/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..e2966f3
--- /dev/null
+++ b/EssentialTools/Properties/AssemblyInfo.cs
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("EssentialTools")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("EssentialTools")]
+[assembly: AssemblyCopyright("Copyright © 2017")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("6605f0aa-cbb9-4e5d-a053-60ee3fd045a3")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/EssentialTools/Views/Home/Index.cshtml b/EssentialTools/Views/Home/Index.cshtml
new file mode 100644
index 0000000..1455aff
--- /dev/null
+++ b/EssentialTools/Views/Home/Index.cshtml
@@ -0,0 +1,18 @@
+@model decimal
+@{
+ Layout = null;
+}
+
+
+
+
+
+
+ Index
+
+
+
+ Total value is $@Model
+
+
+
diff --git a/EssentialTools/Views/web.config b/EssentialTools/Views/web.config
new file mode 100644
index 0000000..a1139c1
--- /dev/null
+++ b/EssentialTools/Views/web.config
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/EssentialTools/Web.Debug.config b/EssentialTools/Web.Debug.config
new file mode 100644
index 0000000..fae9cfe
--- /dev/null
+++ b/EssentialTools/Web.Debug.config
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/EssentialTools/Web.Release.config b/EssentialTools/Web.Release.config
new file mode 100644
index 0000000..da6e960
--- /dev/null
+++ b/EssentialTools/Web.Release.config
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/EssentialTools/Web.config b/EssentialTools/Web.config
new file mode 100644
index 0000000..253a82f
--- /dev/null
+++ b/EssentialTools/Web.config
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/EssentialTools/packages.config b/EssentialTools/packages.config
new file mode 100644
index 0000000..4a64468
--- /dev/null
+++ b/EssentialTools/packages.config
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/LanguageFeatures/App_Start/NinjectWebCommon.cs b/LanguageFeatures/App_Start/NinjectWebCommon.cs
new file mode 100644
index 0000000..93f9c7f
--- /dev/null
+++ b/LanguageFeatures/App_Start/NinjectWebCommon.cs
@@ -0,0 +1,58 @@
+[assembly: WebActivator.PreApplicationStartMethod(typeof(LanguageFeatures.App_Start.NinjectWebCommon), "Start")]
+[assembly: WebActivator.ApplicationShutdownMethodAttribute(typeof(LanguageFeatures.App_Start.NinjectWebCommon), "Stop")]
+
+namespace LanguageFeatures.App_Start
+{
+ using System;
+ using System.Web;
+
+ using Microsoft.Web.Infrastructure.DynamicModuleHelper;
+
+ using Ninject;
+ using Ninject.Web.Common;
+
+ public static class NinjectWebCommon
+ {
+ private static readonly Bootstrapper bootstrapper = new Bootstrapper();
+
+ ///
+ /// Starts the application
+ ///
+ public static void Start()
+ {
+ DynamicModuleUtility.RegisterModule(typeof(OnePerRequestHttpModule));
+ DynamicModuleUtility.RegisterModule(typeof(NinjectHttpModule));
+ bootstrapper.Initialize(CreateKernel);
+ }
+
+ ///
+ /// Stops the application.
+ ///
+ public static void Stop()
+ {
+ bootstrapper.ShutDown();
+ }
+
+ ///
+ /// Creates the kernel that will manage your application.
+ ///
+ /// The created kernel.
+ private static IKernel CreateKernel()
+ {
+ var kernel = new StandardKernel();
+ kernel.Bind>().ToMethod(ctx => () => new Bootstrapper().Kernel);
+ kernel.Bind().To();
+
+ RegisterServices(kernel);
+ return kernel;
+ }
+
+ ///
+ /// Load your modules or register your services here!
+ ///
+ /// The kernel.
+ private static void RegisterServices(IKernel kernel)
+ {
+ }
+ }
+}
diff --git a/LanguageFeatures/LanguageFeatures.csproj b/LanguageFeatures/LanguageFeatures.csproj
index ad7abb7..8c4e58b 100644
--- a/LanguageFeatures/LanguageFeatures.csproj
+++ b/LanguageFeatures/LanguageFeatures.csproj
@@ -106,7 +106,9 @@
-
+
+ Designer
+
Web.config
diff --git a/LearningMVC.sln b/LearningMVC.sln
index f254683..963761e 100644
--- a/LearningMVC.sln
+++ b/LearningMVC.sln
@@ -9,6 +9,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PartyInvites", "..\Lab\Part
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Razor", "Razor\Razor.csproj", "{58B43B8C-F613-4AA5-8A77-98A800578267}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EssentialTools", "EssentialTools\EssentialTools.csproj", "{6605F0AA-CBB9-4E5D-A053-60EE3FD045A3}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -27,6 +29,10 @@ Global
{58B43B8C-F613-4AA5-8A77-98A800578267}.Debug|Any CPU.Build.0 = Debug|Any CPU
{58B43B8C-F613-4AA5-8A77-98A800578267}.Release|Any CPU.ActiveCfg = Release|Any CPU
{58B43B8C-F613-4AA5-8A77-98A800578267}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6605F0AA-CBB9-4E5D-A053-60EE3FD045A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6605F0AA-CBB9-4E5D-A053-60EE3FD045A3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6605F0AA-CBB9-4E5D-A053-60EE3FD045A3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6605F0AA-CBB9-4E5D-A053-60EE3FD045A3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE