Relocate the I[Module]Service interface from the client Services file to a new Shared/Interfaces/I[Module]Service.cs so the interface becomes a shared contract. Remove the duplicate interface from the client-side [Module]Service implementation. It was move in error, release 6.1.5 PR add a new Visual Studio Project Template #5493
19 lines
529 B
C#
19 lines
529 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace [Owner].Module.[Module].Services
|
|
{
|
|
public interface I[Module]Service
|
|
{
|
|
Task<List<Models.[Module]>> Get[Module]sAsync(int ModuleId);
|
|
|
|
Task<Models.[Module]> Get[Module]Async(int [Module]Id, int ModuleId);
|
|
|
|
Task<Models.[Module]> Add[Module]Async(Models.[Module] [Module]);
|
|
|
|
Task<Models.[Module]> Update[Module]Async(Models.[Module] [Module]);
|
|
|
|
Task Delete[Module]Async(int [Module]Id, int ModuleId);
|
|
}
|
|
}
|