Merge pull request #954 from dotnet-architecture/refactor/model-dtos
Refactor ModelDTOs in WebMVC for a more consistent folder structure
This commit is contained in:
commit
f9388c55be
@ -5,7 +5,7 @@ using System;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using WebMVC.Models;
|
||||
using WebMVC.ServicesModelDTOs;
|
||||
using Xunit;
|
||||
|
||||
namespace Basket.FunctionalTests
|
||||
|
@ -3,7 +3,7 @@ using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using WebMVC.Models;
|
||||
using WebMVC.ServicesModelDTOs;
|
||||
using Xunit;
|
||||
|
||||
namespace Ordering.FunctionalTests
|
||||
|
@ -2,7 +2,7 @@ namespace Microsoft.eShopOnContainers.WebMVC.Controllers
|
||||
{
|
||||
using AspNetCore.Authorization;
|
||||
using AspNetCore.Mvc;
|
||||
using global::WebMVC.Models;
|
||||
using global::WebMVC.Services.ModelDTOs;
|
||||
using global::WebMVC.Services;
|
||||
using global::WebMVC.ViewModels;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using WebMVC.Models;
|
||||
using WebMVC.Services.ModelDTOs;
|
||||
using Microsoft.eShopOnContainers.WebMVC.Services;
|
||||
using Microsoft.eShopOnContainers.WebMVC.ViewModels;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
|
@ -6,7 +6,7 @@ using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using WebMVC.Infrastructure;
|
||||
using WebMVC.Models;
|
||||
using WebMVC.Services.ModelDTOs;
|
||||
|
||||
namespace Microsoft.eShopOnContainers.WebMVC.Services
|
||||
{
|
||||
|
@ -3,7 +3,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using WebMVC.Models;
|
||||
using WebMVC.Services.ModelDTOs;
|
||||
|
||||
namespace Microsoft.eShopOnContainers.WebMVC.Services
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
using System.Threading.Tasks;
|
||||
using WebMVC.Models;
|
||||
using WebMVC.Services.ModelDTOs;
|
||||
|
||||
namespace WebMVC.Services
|
||||
{
|
||||
|
@ -3,7 +3,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using WebMVC.Models;
|
||||
using WebMVC.Services.ModelDTOs;
|
||||
|
||||
namespace Microsoft.eShopOnContainers.WebMVC.Services
|
||||
{
|
||||
|
@ -6,7 +6,7 @@ using Newtonsoft.Json;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using WebMVC.Infrastructure;
|
||||
using WebMVC.Models;
|
||||
using WebMVC.Services.ModelDTOs;
|
||||
|
||||
namespace WebMVC.Services
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WebMVC.Models
|
||||
namespace WebMVC.Services.ModelDTOs
|
||||
{
|
||||
public class BasketDTO
|
||||
{
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WebMVC.Models
|
||||
namespace WebMVC.Services.ModelDTOs
|
||||
{
|
||||
public class LocationDTO
|
||||
{
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WebMVC.Models
|
||||
namespace WebMVC.Services.ModelDTOs
|
||||
{
|
||||
public class OrderDTO
|
||||
{
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WebMVC.Models
|
||||
namespace WebMVC.Services.ModelDTOs
|
||||
{
|
||||
public class OrderProcessAction
|
||||
{
|
@ -6,7 +6,7 @@ using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using WebMVC.Infrastructure;
|
||||
using WebMVC.Models;
|
||||
using WebMVC.Services.ModelDTOs;
|
||||
|
||||
namespace Microsoft.eShopOnContainers.WebMVC.Services
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using WebMVC.Models;
|
||||
using WebMVC.Services.ModelDTOs;
|
||||
|
||||
namespace Microsoft.eShopOnContainers.WebMVC.ViewModels
|
||||
{
|
||||
|
@ -9,7 +9,7 @@ using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using WebMVC.Models;
|
||||
using WebMVC.Services.ModelDTOs;
|
||||
using Xunit;
|
||||
|
||||
namespace FunctionalTests.Services.Ordering
|
||||
|
Loading…
x
Reference in New Issue
Block a user