Created
January 6, 2020 13:50
-
-
Save merken/388695e07a8e80a423ed21ddef2fa128 to your computer and use it in GitHub Desktop.
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
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
namespace Contract | |
{ | |
/// <summary> | |
/// OldSQLPlugin only implements All() and Get(int productId). | |
/// SQLPlugin and TableStoragePlugin implement the contract described below. | |
/// | |
/// Although OldSQLPlugin implements and older version of the Contract.dll assembly, it can still be loaded and invoked by Prise via the PriseProxy! | |
/// </summary> | |
public interface IProductsRepository | |
{ | |
Task<IEnumerable<Product>> All(); | |
Task<Product> Get(int productId); | |
Task<Product> Create(Product product); | |
Task<Product> Update(Product product); | |
Task Delete(int productId); | |
Task<IEnumerable<Product>> Search(string term); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment