Skip to content

Commit f0856c5

Browse files
fix identation and nullable warnings in orderdto
1 parent 9a1a216 commit f0856c5

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

NorthwindCRUD/Filters/EnumSchemaFilter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using Microsoft.OpenApi.Any;
2-
using Microsoft.OpenApi.Models;
3-
using Swashbuckle.AspNetCore.SwaggerGen;
2+
using Microsoft.OpenApi.Models;
3+
using Swashbuckle.AspNetCore.SwaggerGen;
44

5-
namespace NorthwindCRUD.Filters
5+
namespace NorthwindCRUD.Filters
66
{
77
public class EnumSchemaFilter : ISchemaFilter
88
{

NorthwindCRUD/Models/Contracts/IOrder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using NorthwindCRUD.Models.Dtos;
2-
using static NorthwindCRUD.Helpers.Enums;
2+
using static NorthwindCRUD.Helpers.Enums;
33

4-
namespace NorthwindCRUD.Models.Contracts
4+
namespace NorthwindCRUD.Models.Contracts
55
{
66
public interface IOrder
77
{

NorthwindCRUD/Models/Dtos/AddressDto.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.ComponentModel.DataAnnotations;
2-
using NorthwindCRUD.Models.Contracts;
2+
using NorthwindCRUD.Models.Contracts;
33

4-
namespace NorthwindCRUD.Models.Dtos
4+
namespace NorthwindCRUD.Models.Dtos
55
{
66
public class AddressDto : IAddress
77
{

NorthwindCRUD/Models/Dtos/CategoryDetailsDto.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.ComponentModel.DataAnnotations;
2-
using NorthwindCRUD.Models.Contracts;
2+
using NorthwindCRUD.Models.Contracts;
33

4-
namespace NorthwindCRUD.Models.Dtos
4+
namespace NorthwindCRUD.Models.Dtos
55
{
66
public class CategoryDetailsDto : CategoryDto, ICategoryDetail
77
{

NorthwindCRUD/Models/Dtos/CategoryDto.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.ComponentModel.DataAnnotations;
2-
using NorthwindCRUD.Models.Contracts;
2+
using NorthwindCRUD.Models.Contracts;
33

4-
namespace NorthwindCRUD.Models.Dtos
4+
namespace NorthwindCRUD.Models.Dtos
55
{
66
public class CategoryDto : ICategory
77
{

NorthwindCRUD/Models/Dtos/OrderDetailDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.ComponentModel.DataAnnotations;
22

3-
namespace NorthwindCRUD.Models.Dtos
3+
namespace NorthwindCRUD.Models.Dtos
44
{
55
public class OrderDetailDto
66
{

NorthwindCRUD/Models/Dtos/OrderDto.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class OrderDto : IOrder
99
public int OrderId { get; set; }
1010

1111
[Required(ErrorMessage = "CustomerId is required.")]
12-
public string CustomerId { get; set; }
12+
public string? CustomerId { get; set; }
1313

1414
[Range(1, int.MaxValue, ErrorMessage = "EmployeeId must be a valid employee ID.")]
1515
public int EmployeeId { get; set; }

0 commit comments

Comments
 (0)