Add project files.

This commit is contained in:
2023-10-02 08:24:46 +02:00
parent 24735dd117
commit e1c0b7b113
98 changed files with 75000 additions and 0 deletions

View File

@ -0,0 +1,19 @@
using EmployeeLibrary.Models;
namespace EmployeeLibrary.Data;
public class EmployeeData : IEmployeeData
{
private readonly ISqlDataAccess _db;
public EmployeeData(ISqlDataAccess db)
{
_db = db;
}
public async Task<List<EmployeeModel>> GetEmployees()
{
var output = await _db.LoadDataAsync<EmployeeModel, dynamic>("dbo.spEmployee_GetAll", new { });
return output;
}
}