Poprawiono namespacey

This commit is contained in:
Bartosz Chyzy 2018-12-19 12:55:35 +01:00
parent 13086a7f60
commit c79fed0334
16 changed files with 42 additions and 7 deletions

View File

@ -1,5 +1,7 @@
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
namespace Forum.DataAccessLayer.Models
{

View File

@ -1,4 +1,6 @@
using Forum.DataAccessLayer.Models;
using System.Data.Entity;
using Forum.DataAccessLayer.Models;
using Microsoft.AspNet.Identity.EntityFramework;
namespace Forum.DataAccessLayer
{

View File

@ -1,6 +1,9 @@
using System.Security.Claims;
using System.Threading.Tasks;
using Forum.DataAccessLayer.Models;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using Microsoft.Owin.Security;
namespace Forum.DataAccessLayer.Managers
{

View File

@ -1,6 +1,10 @@
using System;
using Forum.DataAccessLayer.Models;
using Forum.DataAccessLayer.Services;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
namespace Forum.DataAccessLayer.Managers
{

View File

@ -1,3 +1,5 @@
using System.Data.Entity.Migrations;
namespace Forum.DataAccessLayer.Migrations
{

View File

@ -1,3 +1,5 @@
using System.Data.Entity.Migrations;
namespace Forum.DataAccessLayer.Migrations
{

View File

@ -1,3 +1,5 @@
using System.Data.Entity.Migrations;
namespace Forum.DataAccessLayer.Migrations
{

View File

@ -1,3 +1,5 @@
using System.Data.Entity.Migrations;
namespace Forum.DataAccessLayer.Migrations
{

View File

@ -1,3 +1,5 @@
using System.Data.Entity.Migrations;
namespace Forum.DataAccessLayer.Migrations
{

View File

@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Data.Entity.Migrations;
using Forum.DataAccessLayer.Models;
namespace Forum.DataAccessLayer.Migrations

View File

@ -1,4 +1,5 @@
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
namespace Forum.DataAccessLayer.Services
{

View File

@ -1,4 +1,5 @@
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
namespace Forum.DataAccessLayer.Services
{

View File

@ -1,8 +1,6 @@
using System.Net.Mail;
using System.Net;
using System.Web.Http;
using System.Web.Mvc;
using System.Net.Http;
using System.Web.ModelBinding;
using System;
using Newtonsoft.Json;
@ -12,7 +10,7 @@ namespace MailSender.Controllers
public class HomeController : Controller
{
[HttpPost]
public ActionResult Index([FromBody]MailDTO.MailDTO mail)
public ActionResult Index([System.Web.Http.FromBody]MailDTO.MailDTO mail)
{
string jsonString = TempData["mailModel"] as string;
Models.MailModel model = null;
@ -23,14 +21,14 @@ namespace MailSender.Controllers
return View(model);
}
[HttpGet]
[System.Web.Http.HttpGet]
public ActionResult Error(string errMsg)
{
ViewData.Add("errMsg", errMsg);
return View();
}
[HttpPost]
[System.Web.Mvc.HttpPost]
public ActionResult Send(MailSender.Models.MailModel model)
{
if (ModelState.IsValid)

View File

@ -64,12 +64,18 @@
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll</HintPath>
</Reference>
<Reference Include="System.Web.DynamicData" />
<Reference Include="System.Web.Entity" />
<Reference Include="System.Web.ApplicationServices" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll</HintPath>
</Reference>
<Reference Include="System.Web.Http.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\System.Web.Http.Common.4.0.20126.16343\lib\net40\System.Web.Http.Common.dll</HintPath>
</Reference>

View File

@ -65,7 +65,12 @@
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
</system.webServer>
<handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<remove name="OPTIONSVerbHandler" />
<remove name="TRACEVerbHandler" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers></system.webServer>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>

View File

@ -19,6 +19,8 @@
<package id="Microsoft.AspNet.TelemetryCorrelation" version="1.0.0" targetFramework="net461" />
<package id="Microsoft.AspNet.Web.Optimization" version="1.1.3" targetFramework="net461" />
<package id="Microsoft.AspNet.Web.Optimization.pl" version="1.1.3" targetFramework="net461" />
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net461" />
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net461" />
<package id="Microsoft.AspNet.WebPages" version="3.2.4" targetFramework="net461" />
<package id="Microsoft.AspNet.WebPages.pl" version="3.2.4" targetFramework="net461" />
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="2.0.0" targetFramework="net461" />