2023-08-15 22:52:30 -05:00
|
|
|
|
namespace DamageAssesment.Api.Employees.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IEmployeesProvider
|
|
|
|
|
{
|
|
|
|
|
Task<(bool IsSuccess, IEnumerable<Models.Employee> Employees, string ErrorMessage)> GetEmployeesAsync();
|
2023-09-13 00:28:24 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.Employee Employee, string ErrorMessage)> GetEmployeeByIdAsync(int Id);
|
2023-08-25 17:44:04 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.Employee Employee, string ErrorMessage)> PostEmployeeAsync(Models.Employee Employee);
|
2023-09-13 00:28:24 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.Employee Employee, string ErrorMessage)> UpdateEmployeeAsync(int Id, Models.Employee Employee);
|
|
|
|
|
Task<(bool IsSuccess, Models.Employee Employee, string ErrorMessage)> DeleteEmployeeAsync(int Id);
|
2023-09-04 20:31:41 -05:00
|
|
|
|
void SeedData();
|
2023-08-15 22:52:30 -05:00
|
|
|
|
}
|
|
|
|
|
}
|