21 lines
508 B
C#
21 lines
508 B
C#
using Marco.Pms.DataAccess.Data;
|
|
using Marco.Pms.Model.Employees;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace MarcoBMS.Services.Helpers
|
|
{
|
|
public class EmployeeHelper
|
|
{
|
|
private readonly ApplicationDbContext _context;
|
|
public EmployeeHelper(ApplicationDbContext context) {
|
|
_context = context;
|
|
}
|
|
|
|
|
|
public async Task<Employee> GetEmployeeByID(int EmployeeID)
|
|
{
|
|
return await _context.Employees.FindAsync(EmployeeID);
|
|
}
|
|
}
|
|
}
|