MVC (layered variant)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using MVC_SimpleCRUD_Layered.Application.Models;
|
||||
|
||||
namespace MVC_SimpleCRUD_Layered.Application.People;
|
||||
|
||||
public interface IPeopleService
|
||||
{
|
||||
Task<List<PersonInfo>> GetAllForSimpleListAsync();
|
||||
|
||||
Task<PagedList<PersonInfo>> GetPagedListAsync(PeopleIndexRequest request);
|
||||
|
||||
Task<PersonForm?> GetFormForEditAsync(int id, PeopleIndexRequest returnRequest);
|
||||
|
||||
Task<List<CountryOption>> GetCountryOptionsAsync();
|
||||
|
||||
Task<SavePersonResult> CreateAsync(PersonForm form);
|
||||
|
||||
Task<SavePersonResult> UpdateAsync(int id, PersonForm form);
|
||||
|
||||
Task<DeletePersonResult> DeleteAsync(int id);
|
||||
}
|
||||
Reference in New Issue
Block a user