Standardize namespaces to all be under the Microsoft.eShopOnWeb namespace and update default namespaces. (#102)
This commit is contained in:
committed by
Steve Smith
parent
8bf2a7ade1
commit
f953495e38
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
<TargetFramework>netstandard2.0</TargetFramework>
|
||||||
|
<RootNamespace>Microsoft.eShopWeb.ApplicationCore</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Ardalis.GuardClauses;
|
using Ardalis.GuardClauses;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace ApplicationCore.Entities.BuyerAggregate
|
namespace Microsoft.eShopWeb.ApplicationCore.Entities.BuyerAggregate
|
||||||
{
|
{
|
||||||
public class Buyer : BaseEntity, IAggregateRoot
|
public class Buyer : BaseEntity, IAggregateRoot
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
||||||
|
|
||||||
namespace ApplicationCore.Entities.BuyerAggregate
|
namespace Microsoft.eShopWeb.ApplicationCore.Entities.BuyerAggregate
|
||||||
{
|
{
|
||||||
public class PaymentMethod : BaseEntity
|
public class PaymentMethod : BaseEntity
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace ApplicationCore.Entities.OrderAggregate
|
namespace Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate
|
||||||
{
|
{
|
||||||
public class Address // ValueObject
|
public class Address // ValueObject
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using Ardalis.GuardClauses;
|
using Ardalis.GuardClauses;
|
||||||
|
|
||||||
namespace ApplicationCore.Entities.OrderAggregate
|
namespace Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a snapshot of the item that was ordered. If catalog item details change, details of
|
/// Represents a snapshot of the item that was ordered. If catalog item details change, details of
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Ardalis.GuardClauses;
|
using Ardalis.GuardClauses;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace ApplicationCore.Entities.OrderAggregate
|
namespace Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate
|
||||||
{
|
{
|
||||||
public class Order : BaseEntity, IAggregateRoot
|
public class Order : BaseEntity, IAggregateRoot
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
||||||
|
|
||||||
namespace ApplicationCore.Entities.OrderAggregate
|
namespace Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate
|
||||||
{
|
{
|
||||||
|
|
||||||
public class OrderItem : BaseEntity
|
public class OrderItem : BaseEntity
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace ApplicationCore.Exceptions
|
namespace Microsoft.eShopWeb.ApplicationCore.Exceptions
|
||||||
{
|
{
|
||||||
public class BasketNotFoundException : Exception
|
public class BasketNotFoundException : Exception
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using ApplicationCore.Exceptions;
|
using Microsoft.eShopWeb.ApplicationCore.Exceptions;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
||||||
|
|
||||||
namespace Ardalis.GuardClauses
|
namespace Ardalis.GuardClauses
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace ApplicationCore.Interfaces
|
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
|
||||||
{
|
{
|
||||||
public interface IAggregateRoot
|
public interface IAggregateRoot
|
||||||
{ }
|
{ }
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace ApplicationCore.Interfaces
|
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This type eliminates the need to depend directly on the ASP.NET Core logging types.
|
/// This type eliminates the need to depend directly on the ASP.NET Core logging types.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ApplicationCore.Interfaces
|
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
|
||||||
{
|
{
|
||||||
public interface IAsyncRepository<T> where T : BaseEntity
|
public interface IAsyncRepository<T> where T : BaseEntity
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ApplicationCore.Interfaces
|
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
|
||||||
{
|
{
|
||||||
public interface IBasketService
|
public interface IBasketService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ApplicationCore.Interfaces
|
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
|
||||||
{
|
{
|
||||||
|
|
||||||
public interface IEmailSender
|
public interface IEmailSender
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Security.Principal;
|
using System.Security.Principal;
|
||||||
|
|
||||||
namespace ApplicationCore.Interfaces
|
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
|
||||||
{
|
{
|
||||||
public interface IIdentityParser<T>
|
public interface IIdentityParser<T>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using ApplicationCore.Entities.OrderAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ApplicationCore.Interfaces
|
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
|
||||||
{
|
{
|
||||||
|
|
||||||
public interface IOrderRepository : IRepository<Order>, IAsyncRepository<Order>
|
public interface IOrderRepository : IRepository<Order>, IAsyncRepository<Order>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using ApplicationCore.Entities.OrderAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace ApplicationCore.Interfaces
|
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
|
||||||
{
|
{
|
||||||
public interface IOrderService
|
public interface IOrderService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace ApplicationCore.Interfaces
|
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
|
||||||
{
|
{
|
||||||
public interface IRepository<T> where T : BaseEntity
|
public interface IRepository<T> where T : BaseEntity
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
|
|
||||||
namespace ApplicationCore.Interfaces
|
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
|
||||||
{
|
{
|
||||||
public interface ISpecification<T>
|
public interface ISpecification<T>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace ApplicationCore.Interfaces
|
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
|
||||||
{
|
{
|
||||||
public interface IUriComposer
|
public interface IUriComposer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using ApplicationCore.Specifications;
|
using Microsoft.eShopWeb.ApplicationCore.Specifications;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Ardalis.GuardClauses;
|
using Ardalis.GuardClauses;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
||||||
|
|
||||||
namespace ApplicationCore.Services
|
namespace Microsoft.eShopWeb.ApplicationCore.Services
|
||||||
{
|
{
|
||||||
public class BasketService : IBasketService
|
public class BasketService : IBasketService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using ApplicationCore.Entities.OrderAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Ardalis.GuardClauses;
|
using Ardalis.GuardClauses;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
||||||
|
|
||||||
namespace ApplicationCore.Services
|
namespace Microsoft.eShopWeb.ApplicationCore.Services
|
||||||
{
|
{
|
||||||
public class OrderService : IOrderService
|
public class OrderService : IOrderService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Microsoft.eShopWeb;
|
using Microsoft.eShopWeb;
|
||||||
|
|
||||||
namespace ApplicationCore.Services
|
namespace Microsoft.eShopWeb.ApplicationCore.Services
|
||||||
{
|
{
|
||||||
public class UriComposer : IUriComposer
|
public class UriComposer : IUriComposer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using System;
|
using System;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace ApplicationCore.Specifications
|
namespace Microsoft.eShopWeb.ApplicationCore.Specifications
|
||||||
{
|
{
|
||||||
public abstract class BaseSpecification<T> : ISpecification<T>
|
public abstract class BaseSpecification<T> : ISpecification<T>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
||||||
|
|
||||||
namespace ApplicationCore.Specifications
|
namespace Microsoft.eShopWeb.ApplicationCore.Specifications
|
||||||
{
|
{
|
||||||
public sealed class BasketWithItemsSpecification : BaseSpecification<Basket>
|
public sealed class BasketWithItemsSpecification : BaseSpecification<Basket>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
||||||
|
|
||||||
namespace ApplicationCore.Specifications
|
namespace Microsoft.eShopWeb.ApplicationCore.Specifications
|
||||||
{
|
{
|
||||||
|
|
||||||
public class CatalogFilterSpecification : BaseSpecification<CatalogItem>
|
public class CatalogFilterSpecification : BaseSpecification<CatalogItem>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using ApplicationCore.Entities.OrderAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
|
||||||
|
|
||||||
namespace ApplicationCore.Specifications
|
namespace Microsoft.eShopWeb.ApplicationCore.Specifications
|
||||||
{
|
{
|
||||||
public class CustomerOrdersWithItemsSpecification : BaseSpecification<Order>
|
public class CustomerOrdersWithItemsSpecification : BaseSpecification<Order>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using ApplicationCore.Entities.OrderAggregate;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
||||||
|
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
|
||||||
|
|
||||||
namespace Infrastructure.Data
|
namespace Microsoft.eShopWeb.Infrastructure.Data
|
||||||
{
|
{
|
||||||
|
|
||||||
public class CatalogContext : DbContext
|
public class CatalogContext : DbContext
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Infrastructure.Data
|
namespace Microsoft.eShopWeb.Infrastructure.Data
|
||||||
{
|
{
|
||||||
public class CatalogContextSeed
|
public class CatalogContextSeed
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Infrastructure.Data
|
namespace Microsoft.eShopWeb.Infrastructure.Data
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// "There's some repetition here - couldn't we have some the sync methods call the async?"
|
/// "There's some repetition here - couldn't we have some the sync methods call the async?"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// <auto-generated />
|
// <auto-generated />
|
||||||
using Infrastructure.Data;
|
using Microsoft.eShopWeb.Infrastructure.Data;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata;
|
using Microsoft.EntityFrameworkCore.Metadata;
|
||||||
@@ -8,7 +8,7 @@ using Microsoft.EntityFrameworkCore.Storage;
|
|||||||
using Microsoft.EntityFrameworkCore.Storage.Internal;
|
using Microsoft.EntityFrameworkCore.Storage.Internal;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Infrastructure.Data.Migrations
|
namespace Microsoft.eShopWeb.Infrastructure.Data.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(CatalogContext))]
|
[DbContext(typeof(CatalogContext))]
|
||||||
[Migration("20171018175735_Initial")]
|
[Migration("20171018175735_Initial")]
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Infrastructure.Data.Migrations
|
namespace Microsoft.eShopWeb.Infrastructure.Data.Migrations
|
||||||
{
|
{
|
||||||
public partial class Initial : Migration
|
public partial class Initial : Migration
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// <auto-generated />
|
// <auto-generated />
|
||||||
using Infrastructure.Data;
|
using Microsoft.eShopWeb.Infrastructure.Data;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata;
|
using Microsoft.EntityFrameworkCore.Metadata;
|
||||||
@@ -8,7 +8,7 @@ using Microsoft.EntityFrameworkCore.Storage;
|
|||||||
using Microsoft.EntityFrameworkCore.Storage.Internal;
|
using Microsoft.EntityFrameworkCore.Storage.Internal;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Infrastructure.Data.Migrations
|
namespace Microsoft.eShopWeb.Infrastructure.Data.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(CatalogContext))]
|
[DbContext(typeof(CatalogContext))]
|
||||||
partial class CatalogContextModelSnapshot : ModelSnapshot
|
partial class CatalogContextModelSnapshot : ModelSnapshot
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
using ApplicationCore.Entities.OrderAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
|
||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Infrastructure.Data
|
namespace Microsoft.eShopWeb.Infrastructure.Data
|
||||||
{
|
{
|
||||||
public class OrderRepository : EfRepository<Order>, IOrderRepository
|
public class OrderRepository : EfRepository<Order>, IOrderRepository
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
|
|
||||||
namespace Infrastructure.Identity
|
namespace Microsoft.eShopWeb.Infrastructure.Identity
|
||||||
{
|
{
|
||||||
public class AppIdentityDbContext : IdentityDbContext<ApplicationUser>
|
public class AppIdentityDbContext : IdentityDbContext<ApplicationUser>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Infrastructure.Identity
|
namespace Microsoft.eShopWeb.Infrastructure.Identity
|
||||||
{
|
{
|
||||||
public class AppIdentityDbContextSeed
|
public class AppIdentityDbContextSeed
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
|
|
||||||
namespace Infrastructure.Identity
|
namespace Microsoft.eShopWeb.Infrastructure.Identity
|
||||||
{
|
{
|
||||||
public class ApplicationUser : IdentityUser
|
public class ApplicationUser : IdentityUser
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata;
|
using Microsoft.EntityFrameworkCore.Metadata;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
|
|
||||||
namespace Infrastructure.Identity.Migrations
|
namespace Microsoft.eShopWeb.Infrastructure.Identity.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(AppIdentityDbContext))]
|
[DbContext(typeof(AppIdentityDbContext))]
|
||||||
[Migration("20170822214310_InitialIdentityModel")]
|
[Migration("20170822214310_InitialIdentityModel")]
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata;
|
using Microsoft.EntityFrameworkCore.Metadata;
|
||||||
|
|
||||||
namespace Infrastructure.Identity.Migrations
|
namespace Microsoft.eShopWeb.Infrastructure.Identity.Migrations
|
||||||
{
|
{
|
||||||
public partial class InitialIdentityModel : Migration
|
public partial class InitialIdentityModel : Migration
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ using Microsoft.EntityFrameworkCore;
|
|||||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata;
|
using Microsoft.EntityFrameworkCore.Metadata;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
using Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
|
|
||||||
namespace Infrastructure.Identity.Migrations
|
namespace Microsoft.eShopWeb.Infrastructure.Identity.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(AppIdentityDbContext))]
|
[DbContext(typeof(AppIdentityDbContext))]
|
||||||
partial class AppIdentityDbContextModelSnapshot : ModelSnapshot
|
partial class AppIdentityDbContextModelSnapshot : ModelSnapshot
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
<TargetFramework>netstandard2.0</TargetFramework>
|
||||||
|
<RootNamespace>Microsoft.eShopWeb.Infrastructure</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
namespace Infrastructure.Logging
|
namespace Microsoft.eShopWeb.Infrastructure.Logging
|
||||||
{
|
{
|
||||||
public class LoggerAdapter<T> : IAppLogger<T>
|
public class LoggerAdapter<T> : IAppLogger<T>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Infrastructure.Services
|
namespace Microsoft.eShopWeb.Infrastructure.Services
|
||||||
{
|
{
|
||||||
// This class is used by the application to send email for account confirmation and password reset.
|
// This class is used by the application to send email for account confirmation and password reset.
|
||||||
// For more details see https://go.microsoft.com/fwlink/?LinkID=532713
|
// For more details see https://go.microsoft.com/fwlink/?LinkID=532713
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Microsoft.eShopWeb
|
namespace Microsoft.eShopWeb.Web
|
||||||
{
|
{
|
||||||
public static class Constants
|
public static class Constants
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,15 +1,14 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
using Microsoft.AspNetCore.Authentication;
|
using Microsoft.AspNetCore.Authentication;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.eShopWeb.ViewModels.Account;
|
using Microsoft.eShopWeb.Web.ViewModels.Account;
|
||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Web.ViewModels.Account;
|
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Controllers
|
namespace Microsoft.eShopWeb.Web.Controllers
|
||||||
{
|
{
|
||||||
|
|
||||||
[Route("[controller]/[action]")]
|
[Route("[controller]/[action]")]
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using Microsoft.eShopWeb.Services;
|
using Microsoft.eShopWeb.Web.Services;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Controllers.Api
|
namespace Microsoft.eShopWeb.Web.Controllers.Api
|
||||||
{
|
{
|
||||||
[Route("api/[controller]/[action]")]
|
[Route("api/[controller]/[action]")]
|
||||||
public class BaseApiController : Controller
|
public class BaseApiController : Controller
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using Microsoft.eShopWeb.Services;
|
using Microsoft.eShopWeb.Web.Services;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Controllers.Api
|
namespace Microsoft.eShopWeb.Web.Controllers.Api
|
||||||
{
|
{
|
||||||
public class CatalogController : BaseApiController
|
public class CatalogController : BaseApiController
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.eShopWeb.ViewModels;
|
using Microsoft.eShopWeb.Web.ViewModels;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using ApplicationCore.Entities.OrderAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.eShopWeb.Interfaces;
|
using Microsoft.eShopWeb.Web.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Controllers
|
namespace Microsoft.eShopWeb.Web.Controllers
|
||||||
{
|
{
|
||||||
[Route("[controller]/[action]")]
|
[Route("[controller]/[action]")]
|
||||||
public class BasketController : Controller
|
public class BasketController : Controller
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using Microsoft.eShopWeb.Services;
|
using Microsoft.eShopWeb.Web.Services;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Controllers
|
namespace Microsoft.eShopWeb.Web.Controllers
|
||||||
{
|
{
|
||||||
[Route("")]
|
[Route("")]
|
||||||
public class CatalogController : Controller
|
public class CatalogController : Controller
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
using Microsoft.AspNetCore.Authentication;
|
using Microsoft.AspNetCore.Authentication;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.eShopWeb.ViewModels.Manage;
|
using Microsoft.eShopWeb.Web.ViewModels.Manage;
|
||||||
using Microsoft.eShopWeb.Services;
|
using Microsoft.eShopWeb.Web.Services;
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.Encodings.Web;
|
using System.Text.Encodings.Web;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Controllers
|
namespace Microsoft.eShopWeb.Web.Controllers
|
||||||
{
|
{
|
||||||
[Authorize]
|
[Authorize]
|
||||||
[Route("[controller]/[action]")]
|
[Route("[controller]/[action]")]
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.eShopWeb.ViewModels;
|
using Microsoft.eShopWeb.Web.ViewModels;
|
||||||
using System;
|
using System;
|
||||||
using ApplicationCore.Entities.OrderAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
|
||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using ApplicationCore.Specifications;
|
using Microsoft.eShopWeb.ApplicationCore.Specifications;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Controllers
|
namespace Microsoft.eShopWeb.Web.Controllers
|
||||||
{
|
{
|
||||||
[Authorize]
|
[Authorize]
|
||||||
[Route("[controller]/[action]")]
|
[Route("[controller]/[action]")]
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using System.Text.Encodings.Web;
|
using System.Text.Encodings.Web;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Services
|
namespace Microsoft.eShopWeb.Web.Services
|
||||||
{
|
{
|
||||||
public static class EmailSenderExtensions
|
public static class EmailSenderExtensions
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Microsoft.eShopWeb.Controllers;
|
using Microsoft.eShopWeb.Web.Controllers;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Mvc
|
namespace Microsoft.AspNetCore.Mvc
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using Microsoft.eShopWeb.ViewModels;
|
using Microsoft.eShopWeb.Web.ViewModels;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Interfaces
|
namespace Microsoft.eShopWeb.Web.Interfaces
|
||||||
{
|
{
|
||||||
public interface IBasketViewModelService
|
public interface IBasketViewModelService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.eShopWeb.ViewModels;
|
using Microsoft.eShopWeb.Web.ViewModels;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Services
|
namespace Microsoft.eShopWeb.Web.Services
|
||||||
{
|
{
|
||||||
public interface ICatalogService
|
public interface ICatalogService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore;
|
using Microsoft.AspNetCore;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Infrastructure.Data;
|
using Microsoft.eShopWeb.Infrastructure.Data;
|
||||||
using System;
|
using System;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb
|
namespace Microsoft.eShopWeb.Web
|
||||||
{
|
{
|
||||||
public class Program
|
public class Program
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using ApplicationCore.Specifications;
|
using Microsoft.eShopWeb.ApplicationCore.Specifications;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.BasketAggregate;
|
||||||
using Microsoft.eShopWeb.Interfaces;
|
using Microsoft.eShopWeb.Web.Interfaces;
|
||||||
using Microsoft.eShopWeb.ViewModels;
|
using Microsoft.eShopWeb.Web.ViewModels;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Services
|
namespace Microsoft.eShopWeb.Web.Services
|
||||||
{
|
{
|
||||||
public class BasketViewModelService : IBasketViewModelService
|
public class BasketViewModelService : IBasketViewModelService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.eShopWeb.ViewModels;
|
using Microsoft.eShopWeb.Web.ViewModels;
|
||||||
using Microsoft.Extensions.Caching.Memory;
|
using Microsoft.Extensions.Caching.Memory;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Services
|
namespace Microsoft.eShopWeb.Web.Services
|
||||||
{
|
{
|
||||||
public class CachedCatalogService : ICatalogService
|
public class CachedCatalogService : ICatalogService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.eShopWeb.ViewModels;
|
using Microsoft.eShopWeb.Web.ViewModels;
|
||||||
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
using Microsoft.eShopWeb.ApplicationCore.Entities;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using System;
|
using System;
|
||||||
using ApplicationCore.Specifications;
|
using Microsoft.eShopWeb.ApplicationCore.Specifications;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Services
|
namespace Microsoft.eShopWeb.Web.Services
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This is a UI-specific service so belongs in UI project. It does not contain any business logic and works
|
/// This is a UI-specific service so belongs in UI project. It does not contain any business logic and works
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using ApplicationCore.Services;
|
using Microsoft.eShopWeb.ApplicationCore.Services;
|
||||||
using Infrastructure.Data;
|
using Microsoft.eShopWeb.Infrastructure.Data;
|
||||||
using Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
using Infrastructure.Logging;
|
using Microsoft.eShopWeb.Infrastructure.Logging;
|
||||||
using Infrastructure.Services;
|
using Microsoft.eShopWeb.Infrastructure.Services;
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.eShopWeb.Interfaces;
|
using Microsoft.eShopWeb.Web.Interfaces;
|
||||||
using Microsoft.eShopWeb.Services;
|
using Microsoft.eShopWeb.Web.Services;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using System;
|
using System;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb
|
namespace Microsoft.eShopWeb.Web
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
using Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.eShopWeb;
|
using Microsoft.eShopWeb;
|
||||||
using Microsoft.eShopWeb.Interfaces;
|
using Microsoft.eShopWeb.Web.Interfaces;
|
||||||
using Microsoft.eShopWeb.ViewModels;
|
using Microsoft.eShopWeb.Web.ViewModels;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Web.ViewComponents
|
namespace Microsoft.eShopWeb.Web.ViewComponents
|
||||||
{
|
{
|
||||||
public class Basket : ViewComponent
|
public class Basket : ViewComponent
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.ViewModels.Account
|
namespace Microsoft.eShopWeb.Web.ViewModels.Account
|
||||||
{
|
{
|
||||||
public class LoginViewModel
|
public class LoginViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.ViewModels.Account
|
namespace Microsoft.eShopWeb.Web.ViewModels.Account
|
||||||
{
|
{
|
||||||
public class LoginWith2faViewModel
|
public class LoginWith2faViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.ViewModels.Account
|
namespace Microsoft.eShopWeb.Web.ViewModels.Account
|
||||||
{
|
{
|
||||||
public class RegisterViewModel
|
public class RegisterViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Web.ViewModels.Account
|
namespace Microsoft.eShopWeb.Web.ViewModels.Account
|
||||||
{
|
{
|
||||||
public class ResetPasswordViewModel
|
public class ResetPasswordViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Microsoft.eShopWeb.ViewModels
|
namespace Microsoft.eShopWeb.Web.ViewModels
|
||||||
{
|
{
|
||||||
public class BasketComponentViewModel
|
public class BasketComponentViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Microsoft.eShopWeb.ViewModels
|
namespace Microsoft.eShopWeb.Web.ViewModels
|
||||||
{
|
{
|
||||||
public class BasketItemViewModel
|
public class BasketItemViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.ViewModels
|
namespace Microsoft.eShopWeb.Web.ViewModels
|
||||||
{
|
{
|
||||||
public class BasketViewModel
|
public class BasketViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.ViewModels
|
namespace Microsoft.eShopWeb.Web.ViewModels
|
||||||
{
|
{
|
||||||
public class CatalogIndexViewModel
|
public class CatalogIndexViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Microsoft.eShopWeb.ViewModels
|
namespace Microsoft.eShopWeb.Web.ViewModels
|
||||||
{
|
{
|
||||||
public class CatalogItemViewModel
|
public class CatalogItemViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.ViewModels.Manage
|
namespace Microsoft.eShopWeb.Web.ViewModels.Manage
|
||||||
{
|
{
|
||||||
public class ChangePasswordViewModel
|
public class ChangePasswordViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.ViewModels.Manage
|
namespace Microsoft.eShopWeb.Web.ViewModels.Manage
|
||||||
{
|
{
|
||||||
public class EnableAuthenticatorViewModel
|
public class EnableAuthenticatorViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.ViewModels.Manage
|
namespace Microsoft.eShopWeb.Web.ViewModels.Manage
|
||||||
{
|
{
|
||||||
public class ExternalLoginsViewModel
|
public class ExternalLoginsViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Microsoft.eShopWeb.ViewModels.Manage
|
namespace Microsoft.eShopWeb.Web.ViewModels.Manage
|
||||||
{
|
{
|
||||||
public class GenerateRecoveryCodesViewModel
|
public class GenerateRecoveryCodesViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.ViewModels.Manage
|
namespace Microsoft.eShopWeb.Web.ViewModels.Manage
|
||||||
{
|
{
|
||||||
public class IndexViewModel
|
public class IndexViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Microsoft.eShopWeb.ViewModels.Manage
|
namespace Microsoft.eShopWeb.Web.ViewModels.Manage
|
||||||
{
|
{
|
||||||
public class RemoveLoginViewModel
|
public class RemoveLoginViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.ViewModels.Manage
|
namespace Microsoft.eShopWeb.Web.ViewModels.Manage
|
||||||
{
|
{
|
||||||
public class SetPasswordViewModel
|
public class SetPasswordViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.ViewModels.Manage
|
namespace Microsoft.eShopWeb.Web.ViewModels.Manage
|
||||||
{
|
{
|
||||||
public class TwoFactorAuthenticationViewModel
|
public class TwoFactorAuthenticationViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.ViewModels
|
namespace Microsoft.eShopWeb.Web.ViewModels
|
||||||
{
|
{
|
||||||
public class OrderItemViewModel
|
public class OrderItemViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using ApplicationCore.Entities.OrderAggregate;
|
using Microsoft.eShopWeb.ApplicationCore.Entities.OrderAggregate;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.ViewModels
|
namespace Microsoft.eShopWeb.Web.ViewModels
|
||||||
{
|
{
|
||||||
public class OrderViewModel
|
public class OrderViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Microsoft.eShopWeb.ViewModels
|
namespace Microsoft.eShopWeb.Web.ViewModels
|
||||||
{
|
{
|
||||||
public class PaginationInfoViewModel
|
public class PaginationInfoViewModel
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
@using Microsoft.eShopWeb.Web.ViewModels.Account
|
||||||
@model LoginWith2faViewModel
|
@model LoginWith2faViewModel
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Two-factor authentication";
|
ViewData["Title"] = "Two-factor authentication";
|
||||||
|
|||||||
@@ -1,55 +1,56 @@
|
|||||||
@using System.Collections.Generic
|
@using System.Collections.Generic
|
||||||
@using Microsoft.AspNetCore.Http
|
@using Microsoft.AspNetCore.Http
|
||||||
@using Microsoft.AspNetCore.Http.Authentication
|
@using Microsoft.AspNetCore.Http.Authentication
|
||||||
|
@using Microsoft.eShopWeb.Web.ViewModels.Account
|
||||||
@model RegisterViewModel
|
@model RegisterViewModel
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Register";
|
ViewData["Title"] = "Register";
|
||||||
}
|
}
|
||||||
<div class="brand-header-block">
|
<div class="brand-header-block">
|
||||||
<ul class="container">
|
<ul class="container">
|
||||||
<li class="active" style="margin-right: 65px;">Already have an account? <a asp-action="Signin">LOGIN</a></li>
|
<li class="active" style="margin-right: 65px;">Already have an account? <a asp-action="Signin">LOGIN</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="container account-login-container">
|
<div class="container account-login-container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<section>
|
<section>
|
||||||
<form asp-controller="Account" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal">
|
<form asp-controller="Account" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal">
|
||||||
<div asp-validation-summary="All" class="text-danger"></div>
|
<div asp-validation-summary="All" class="text-danger"></div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Email" class="col-md-2 control-label"></label>
|
<label asp-for="Email" class="col-md-2 control-label"></label>
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<input asp-for="Email" class="form-control" />
|
<input asp-for="Email" class="form-control" />
|
||||||
<span asp-validation-for="Email" class="text-danger"></span>
|
<span asp-validation-for="Email" class="text-danger"></span>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
</div>
|
||||||
<label asp-for="Password" class="col-md-2 control-label"></label>
|
<div class="form-group">
|
||||||
<div class="col-md-10">
|
<label asp-for="Password" class="col-md-2 control-label"></label>
|
||||||
<input asp-for="Password" class="form-control" />
|
<div class="col-md-10">
|
||||||
<span asp-validation-for="Password" class="text-danger"></span>
|
<input asp-for="Password" class="form-control" />
|
||||||
</div>
|
<span asp-validation-for="Password" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
</div>
|
||||||
<label asp-for="ConfirmPassword" class="col-md-2 control-label"></label>
|
<div class="form-group">
|
||||||
<div class="col-md-10">
|
<label asp-for="ConfirmPassword" class="col-md-2 control-label"></label>
|
||||||
<input asp-for="ConfirmPassword" class="form-control" />
|
<div class="col-md-10">
|
||||||
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
|
<input asp-for="ConfirmPassword" class="form-control" />
|
||||||
</div>
|
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
</div>
|
||||||
<button type="submit" class="btn btn-default btn-brand btn-brand-big"> REGISTER </button>
|
<div class="form-group">
|
||||||
</div>
|
<button type="submit" class="btn btn-default btn-brand btn-brand-big"> REGISTER </button>
|
||||||
<p>
|
</div>
|
||||||
Note that for demo purposes you don't need to register! Use the credentials shown below the
|
<p>
|
||||||
<a asp-action="signin">login screen</a>.
|
Note that for demo purposes you don't need to register! Use the credentials shown below the
|
||||||
</p>
|
<a asp-action="signin">login screen</a>.
|
||||||
</form>
|
</p>
|
||||||
</section>
|
</form>
|
||||||
</div>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
@section Scripts {
|
@section Scripts {
|
||||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,60 +1,60 @@
|
|||||||
@using Microsoft.eShopWeb.ViewModels.Account
|
@using Microsoft.eShopWeb.Web.ViewModels.Account
|
||||||
@model LoginViewModel
|
@model LoginViewModel
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Log in";
|
ViewData["Title"] = "Log in";
|
||||||
}
|
}
|
||||||
<div class="brand-header-block">
|
<div class="brand-header-block">
|
||||||
<ul class="container">
|
<ul class="container">
|
||||||
@*<li><a asp-area="" asp-controller="Account" asp-action="Register">REGISTER</a></li>*@
|
@*<li><a asp-area="" asp-controller="Account" asp-action="Register">REGISTER</a></li>*@
|
||||||
<li class="active" style="margin-right: 65px;">LOGIN</li>
|
<li class="active" style="margin-right: 65px;">LOGIN</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="container account-login-container">
|
<div class="container account-login-container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<section>
|
<section>
|
||||||
<form asp-controller="Account" asp-action="SignIn" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal">
|
<form asp-controller="Account" asp-action="SignIn" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal">
|
||||||
<h4>ARE YOU REGISTERED?</h4>
|
<h4>ARE YOU REGISTERED?</h4>
|
||||||
<div asp-validation-summary="All" class="text-danger"></div>
|
<div asp-validation-summary="All" class="text-danger"></div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label asp-for="Email" class="control-label form-label"></label>
|
<label asp-for="Email" class="control-label form-label"></label>
|
||||||
<input asp-for="Email" class="form-control form-input form-input-center" />
|
<input asp-for="Email" class="form-control form-input form-input-center" />
|
||||||
<span asp-validation-for="Email" class="text-danger"></span>
|
<span asp-validation-for="Email" class="text-danger"></span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label asp-for="Password" class="control-label form-label"></label>
|
||||||
|
<input asp-for="Password" class="form-control form-input form-input-center" />
|
||||||
|
<span asp-validation-for="Password" class="text-danger"></span>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="checkbox">
|
||||||
|
<label asp-for="RememberMe">
|
||||||
|
<input asp-for="RememberMe" />
|
||||||
|
@Html.DisplayNameFor(m => m.RememberMe)
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
</div>
|
||||||
<label asp-for="Password" class="control-label form-label"></label>
|
<div class="form-group">
|
||||||
<input asp-for="Password" class="form-control form-input form-input-center" />
|
<button type="submit" class="btn btn-default btn-brand btn-brand-big"> LOG IN </button>
|
||||||
<span asp-validation-for="Password" class="text-danger"></span>
|
</div>
|
||||||
</div>
|
<p>
|
||||||
<div class="form-group">
|
<a asp-action="Register" asp-route-returnurl="@ViewData["ReturnUrl"]" class="text">Register as a new user?</a>
|
||||||
<div class="checkbox">
|
</p>
|
||||||
<label asp-for="RememberMe">
|
<p>
|
||||||
<input asp-for="RememberMe" />
|
Note that for demo purposes you don't need to register and can login with these credentials:
|
||||||
@Html.DisplayNameFor(m => m.RememberMe)
|
</p>
|
||||||
</label>
|
<p>
|
||||||
</div>
|
User: <b>demouser@microsoft.com</b>
|
||||||
</div>
|
</p>
|
||||||
<div class="form-group">
|
<p>
|
||||||
<button type="submit" class="btn btn-default btn-brand btn-brand-big"> LOG IN </button>
|
Password: <b>Pass@word1</b>
|
||||||
</div>
|
</p>
|
||||||
<p>
|
</form>
|
||||||
<a asp-action="Register" asp-route-returnurl="@ViewData["ReturnUrl"]" class="text">Register as a new user?</a>
|
</section>
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Note that for demo purposes you don't need to register and can login with these credentials:
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
User: <b>demouser@microsoft.com</b>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Password: <b>Pass@word1</b>
|
|
||||||
</p>
|
|
||||||
</form>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
@section Scripts {
|
@section Scripts {
|
||||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@using Microsoft.eShopWeb.ViewModels
|
@using Microsoft.eShopWeb.Web.ViewModels
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Checkout Complete";
|
ViewData["Title"] = "Checkout Complete";
|
||||||
@model BasketViewModel
|
@model BasketViewModel
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@using Microsoft.eShopWeb.ViewModels
|
@using Microsoft.eShopWeb.Web.ViewModels
|
||||||
@model BasketViewModel
|
@model BasketViewModel
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Basket";
|
ViewData["Title"] = "Basket";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
using Microsoft.AspNetCore.Mvc.Rendering;
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
||||||
using Microsoft.AspNetCore.Mvc.ViewFeatures;
|
using Microsoft.AspNetCore.Mvc.ViewFeatures;
|
||||||
|
|
||||||
namespace Microsoft.eShopWeb.Views.Manage
|
namespace Microsoft.eShopWeb.Web.Views.Manage
|
||||||
{
|
{
|
||||||
public static class ManageNavPages
|
public static class ManageNavPages
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
@using Microsoft.eShopWeb.Views.Manage
|
@using Microsoft.eShopWeb.Web.Views.Manage
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
@using Microsoft.eShopWeb.ViewModels
|
@using Microsoft.eShopWeb.Web.ViewModels
|
||||||
@model OrderViewModel
|
@model OrderViewModel
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "My Order History";
|
ViewData["Title"] = "My Order History";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@using Microsoft.eShopWeb.ViewModels
|
@using Microsoft.eShopWeb.Web.ViewModels
|
||||||
@model IEnumerable<OrderViewModel>
|
@model IEnumerable<OrderViewModel>
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "My Order History";
|
ViewData["Title"] = "My Order History";
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
@using Microsoft.eShopWeb
|
@using Microsoft.eShopWeb.Web
|
||||||
@using Microsoft.eShopWeb.ViewModels
|
@using Microsoft.eShopWeb.Web.ViewModels
|
||||||
@using Microsoft.eShopWeb.ViewModels.Account
|
@using Microsoft.eShopWeb.Web.ViewModels.Account
|
||||||
@using Microsoft.eShopWeb.ViewModels.Manage
|
@using Microsoft.eShopWeb.Web.ViewModels.Manage
|
||||||
@using Microsoft.AspNetCore.Identity
|
@using Microsoft.AspNetCore.Identity
|
||||||
@using Infrastructure.Identity
|
@using Microsoft.eShopWeb.Infrastructure.Identity
|
||||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||||
|
<RootNamespace>Microsoft.eShopWeb.Web</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using System.Text.Encodings.Web;
|
using System.Text.Encodings.Web;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using ApplicationCore.Interfaces;
|
using Microsoft.eShopWeb.ApplicationCore.Interfaces;
|
||||||
using Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Infrastructure.Identity;
|
using Microsoft.eShopWeb.Infrastructure.Identity;
|
||||||
using Microsoft.AspNetCore.Identity;
|
using Microsoft.AspNetCore.Identity;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user