2023-08-15 22:52:30 -05:00
|
|
|
|
using DamageAssesment.Api.Locations.Db;
|
|
|
|
|
|
|
|
|
|
namespace DamageAssesment.Api.Locations.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface ILocationsProvider
|
|
|
|
|
{
|
|
|
|
|
Task<(bool IsSuccess, IEnumerable<Models.Location> locations, string ErrorMessage)> GetLocationsAsync();
|
|
|
|
|
Task<(bool IsSuccess, Models.Location Location, string ErrorMessage)> GetLocationByIdAsync(string Id);
|
2023-08-25 17:44:04 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.Location Question, string ErrorMessage)> PostLocationAsync(Models.Location Location);
|
|
|
|
|
Task<(bool IsSuccess, string ErrorMessage)> UpdateLocationAsync(Models.Location Location);
|
2023-08-15 22:52:30 -05:00
|
|
|
|
Task<(bool IsSuccess, string ErrorMessage)> DeleteLocationAsync(string Id);
|
2023-09-04 20:31:41 -05:00
|
|
|
|
void SeedData();
|
2023-08-15 22:52:30 -05:00
|
|
|
|
}
|
|
|
|
|
}
|