Add catalogitem update endpoint to public api (#418)

* Initial update endpoint working

* Updated CatalogItem to support more updates; added tests

* Got MediatR domain events working to check for duplicate item names

* Adding reference link

* Remove domain events spike code

* clean up usings
This commit is contained in:
Steve Smith
2020-07-10 11:50:46 -04:00
committed by GitHub
parent f89c20ee64
commit 1c75f08a33
13 changed files with 205 additions and 7 deletions

View File

@@ -0,0 +1,14 @@
using System;
namespace Microsoft.eShopWeb.ApplicationCore.Exceptions
{
public class DuplicateCatalogItemNameException : Exception
{
public DuplicateCatalogItemNameException(string message, int duplicateItemId) : base(message)
{
DuplicateItemId = duplicateItemId;
}
public int DuplicateItemId { get; }
}
}