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