DamageAssessment_Backend/DamageAssesmentApi/DamageAssesment.Api.Locations/Interfaces/ILocationsProvider.cs
Reginald Cherenfant Jasmin 7a50089f6a Update DbContext Changes
2023-08-25 18:44:04 -04:00

14 lines
681 B
C#

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);
Task<(bool IsSuccess, Models.Location Question, string ErrorMessage)> PostLocationAsync(Models.Location Location);
Task<(bool IsSuccess, string ErrorMessage)> UpdateLocationAsync(Models.Location Location);
Task<(bool IsSuccess, string ErrorMessage)> DeleteLocationAsync(string Id);
}
}