Skip to content

Commit

Permalink
folder refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
md-redwan-hossain committed Oct 4, 2024
1 parent 36e4772 commit c5c3182
Show file tree
Hide file tree
Showing 17 changed files with 39 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.WebUtilities;
using SharpOutcome.Helpers;
using SharpOutcome.Helpers.Contracts;
using SharpOutcome.Helpers.Enums;
using SharpOutcome.HttpApiExample.Utils;

namespace SharpOutcome.HttpApiExample.Controllers;
Expand Down
2 changes: 2 additions & 0 deletions src/SharpOutcome.HttpApiExample/Services/BookService.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Mapster;
using Microsoft.EntityFrameworkCore;
using SharpOutcome.Helpers;
using SharpOutcome.Helpers.Contracts;
using SharpOutcome.Helpers.Enums;
using SharpOutcome.HttpApiExample.Data;
using SharpOutcome.HttpApiExample.DataTransferObjects;

Expand Down
1 change: 1 addition & 0 deletions src/SharpOutcome.HttpApiExample/Services/IBookService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using SharpOutcome.Helpers;
using SharpOutcome.Helpers.Contracts;
using SharpOutcome.HttpApiExample.Data;
using SharpOutcome.HttpApiExample.DataTransferObjects;

Expand Down
3 changes: 3 additions & 0 deletions src/SharpOutcome/Helpers/BadOutcome.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
using SharpOutcome.Helpers.Contracts;
using SharpOutcome.Helpers.Enums;

namespace SharpOutcome.Helpers;

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions src/SharpOutcome/Helpers/BadOutcomeWithPayload.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
using SharpOutcome.Helpers.Contracts;
using SharpOutcome.Helpers.Enums;

namespace SharpOutcome.Helpers;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace SharpOutcome.Helpers;
using SharpOutcome.Helpers.Enums;

namespace SharpOutcome.Helpers.Contracts;

/// <summary>
/// Enforces a contract for bad outcome.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace SharpOutcome.Helpers;
using SharpOutcome.Helpers.Enums;

namespace SharpOutcome.Helpers.Contracts;

/// <summary>
/// Enforces a contract for bad outcome with payload of type <typeparamref name="TPayload"/>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace SharpOutcome.Helpers;
using SharpOutcome.Helpers.Enums;

namespace SharpOutcome.Helpers.Contracts;

/// <summary>
/// Enforces a contract for good outcome.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace SharpOutcome.Helpers;
using SharpOutcome.Helpers.Enums;

namespace SharpOutcome.Helpers.Contracts;

/// <summary>
/// Enforces a contract for good outcome with payload of type <typeparamref name="TPayload"/>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SharpOutcome.Helpers;
namespace SharpOutcome.Helpers.Enums;

/// <summary>
/// Represents the types of bad outcomes.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SharpOutcome.Helpers;
namespace SharpOutcome.Helpers.Enums;

/// <summary>
/// Represents the types of good outcomes.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SharpOutcome.Helpers;
namespace SharpOutcome.Helpers.Enums;

/// <summary>
/// Represents the types of HTTP bad outcomes.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace SharpOutcome.Helpers;
namespace SharpOutcome.Helpers.Enums;

/// <summary>
/// Represents the types of HTTP good outcomes.
Expand Down
3 changes: 3 additions & 0 deletions src/SharpOutcome/Helpers/GoodOutcome.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
using SharpOutcome.Helpers.Contracts;
using SharpOutcome.Helpers.Enums;

namespace SharpOutcome.Helpers;

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions src/SharpOutcome/Helpers/GoodOutcomeWithPayload.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
using SharpOutcome.Helpers.Contracts;
using SharpOutcome.Helpers.Enums;

namespace SharpOutcome.Helpers;

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions src/SharpOutcome/Helpers/HttpBadOutcome.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
using SharpOutcome.Helpers.Contracts;
using SharpOutcome.Helpers.Enums;

namespace SharpOutcome.Helpers;

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions src/SharpOutcome/Helpers/HttpGoodOutcome.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
using SharpOutcome.Helpers.Contracts;
using SharpOutcome.Helpers.Enums;

namespace SharpOutcome.Helpers;

/// <summary>
Expand Down

0 comments on commit c5c3182

Please sign in to comment.