-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Quotations management][Duy] Refactor QuotationService after updating…
… database
- Loading branch information
Showing
9 changed files
with
150 additions
and
136 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
11 changes: 11 additions & 0 deletions
11
Domus.DAL/Implementations/ProductDetailQuoationRevisionRepository.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,11 @@ | ||
using Domus.DAL.Interfaces; | ||
using Domus.Domain.Entities; | ||
|
||
namespace Domus.DAL.Implementations; | ||
|
||
public class ProductDetailQuoationRevisionRepository : GenericRepository<ProductDetailQuotationRevision>, IProductDetailQuotationRevisionRepository | ||
{ | ||
public ProductDetailQuoationRevisionRepository(IAppDbContext dbContext) : base(dbContext) | ||
{ | ||
} | ||
} |
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,11 @@ | ||
using Domus.DAL.Interfaces; | ||
using Domus.Domain.Entities; | ||
|
||
namespace Domus.DAL.Implementations; | ||
|
||
public class QuotationRevisionRepository : GenericRepository<QuotationRevision>, IQuotationRevisionRepository | ||
{ | ||
public QuotationRevisionRepository(IAppDbContext dbContext) : base(dbContext) | ||
{ | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
Domus.DAL/Interfaces/IProductDetailQuotationRevisionRepository.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,8 @@ | ||
using Domus.Common.Interfaces; | ||
using Domus.Domain.Entities; | ||
|
||
namespace Domus.DAL.Interfaces; | ||
|
||
public interface IProductDetailQuotationRevisionRepository : IGenericRepository<ProductDetailQuotationRevision>, IAutoRegisterable | ||
{ | ||
} |
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,8 @@ | ||
using Domus.Common.Interfaces; | ||
using Domus.Domain.Entities; | ||
|
||
namespace Domus.DAL.Interfaces; | ||
|
||
public interface IQuotationRevisionRepository : IGenericRepository<QuotationRevision>, IAutoRegisterable | ||
{ | ||
} |
18 changes: 18 additions & 0 deletions
18
Domus.Domain/Dtos/Quotations/DtoProductDetailQuotationRevision.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,18 @@ | ||
using Domus.Domain.Dtos.Products; | ||
|
||
namespace Domus.Domain.Dtos.Quotations; | ||
|
||
public class DtoProductDetailQuotationRevision | ||
{ | ||
public string ProductName { get; set; } = null!; | ||
|
||
public double Price { get; set; } | ||
|
||
public string MonetaryUnit { get; set; } = null!; | ||
|
||
public double Quantity { get; set; } | ||
|
||
public string QuantityType { get; set; } = null!; | ||
|
||
public DtoProductDetail Detail { get; set; } = null!; | ||
} |
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
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
Oops, something went wrong.