-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Headway.RemediatR with Headway.RemediatR.Core #52
Replace Headway.RemediatR with Headway.RemediatR.Core #52
- Loading branch information
1 parent
d40e213
commit f7da8f5
Showing
7 changed files
with
32 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/Headway.RemediatR.Core/Interface/IRemediatRRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Headway.Core.Interface; | ||
using Headway.RemediatR.Core.Model; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
|
||
namespace Headway.RemediatR.Core.Interface | ||
{ | ||
public interface IRemediatRRepository : IRepository | ||
{ | ||
Task<IEnumerable<Product>> GetProductsAsync(); | ||
Task<Product> GetProductAsync(int id); | ||
Task<Product> AddProductAsync(Product product); | ||
Task<Product> UpdateProductAsync(Product product); | ||
Task<int> DeleteProductAsync(int id); | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
src/Headway.RemediatR/Model/Customer.cs → src/Headway.RemediatR.Core/Model/Customer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...eadway.RemediatR/Model/CustomerProduct.cs → ...y.RemediatR.Core/Model/CustomerProduct.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/Headway.RemediatR/Model/Product.cs → src/Headway.RemediatR.Core/Model/Product.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
namespace Headway.RemediatR.Model | ||
namespace Headway.RemediatR.Core.Model | ||
{ | ||
public class Product | ||
{ | ||
public int ProductId { get; set; } | ||
public string Name { get; set; } | ||
public string? Name { get; set; } | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/Headway.RemediatR/Model/Program.cs → src/Headway.RemediatR.Core/Model/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
namespace Headway.RemediatR.Model | ||
namespace Headway.RemediatR.Core.Model | ||
{ | ||
public class Program | ||
{ | ||
|
4 changes: 3 additions & 1 deletion
4
src/Headway.RemediatR/Model/Redress.cs → src/Headway.RemediatR.Core/Model/Redress.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters