2023-08-15 22:52:30 -05:00
|
|
|
|
namespace DamageAssesment.Api.Locations.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IRegionsProvider
|
|
|
|
|
{
|
|
|
|
|
Task<(bool IsSuccess, IEnumerable<Models.Region> regions, string ErrorMessage)> GetRegionsAsync();
|
|
|
|
|
Task<(bool IsSuccess, Models.Region Region, string ErrorMessage)> GetRegionByIdAsync(string Id);
|
|
|
|
|
Task<(bool IsSuccess, Models.Region Region, string ErrorMessage)> PostRegionAsync(Models.Region region);
|
|
|
|
|
Task<(bool IsSuccess, Models.Region Region, string ErrorMessage)> PutRegionAsync(Models.Region region);
|
|
|
|
|
Task<(bool IsSuccess, Models.Region Region, string ErrorMessage)> DeleteRegionAsync(string Id);
|
2023-09-04 20:31:41 -05:00
|
|
|
|
void SeedData();
|
2023-08-15 22:52:30 -05:00
|
|
|
|
}
|
|
|
|
|
}
|