2023-06-25 18:36:02 +07:00
|
|
|
|
using BMA.EHR.Application.Common.Interfaces;
|
|
|
|
|
|
using BMA.EHR.Domain.Entities.MetaData.BloodGroup;
|
2023-06-26 10:15:50 +07:00
|
|
|
|
using Microsoft.AspNetCore.Http;
|
2023-06-25 18:36:02 +07:00
|
|
|
|
|
|
|
|
|
|
namespace BMA.EHR.Application.Repositories.BloodGroup
|
|
|
|
|
|
{
|
2023-06-26 10:15:50 +07:00
|
|
|
|
public class BloodGroupRepository : GenericRepository<Guid, BloodGroupEntity>
|
2023-06-25 18:36:02 +07:00
|
|
|
|
{
|
2023-06-26 10:15:50 +07:00
|
|
|
|
#region " Fields "
|
|
|
|
|
|
|
2023-06-25 18:36:02 +07:00
|
|
|
|
private readonly IApplicationDBContext _dbContext;
|
2023-06-26 10:15:50 +07:00
|
|
|
|
private readonly IHttpContextAccessor _httpContextAccessor;
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
2023-06-25 18:36:02 +07:00
|
|
|
|
|
2023-06-26 10:15:50 +07:00
|
|
|
|
#region " Constructor and Destructor "
|
|
|
|
|
|
|
|
|
|
|
|
public BloodGroupRepository(IApplicationDBContext dbContext,
|
|
|
|
|
|
IHttpContextAccessor httpContextAccessor) : base(dbContext, httpContextAccessor)
|
2023-06-25 18:36:02 +07:00
|
|
|
|
{
|
|
|
|
|
|
_dbContext = dbContext;
|
2023-06-26 10:15:50 +07:00
|
|
|
|
_httpContextAccessor = httpContextAccessor;
|
2023-06-25 18:36:02 +07:00
|
|
|
|
}
|
|
|
|
|
|
|
2023-06-26 10:15:50 +07:00
|
|
|
|
#endregion
|
2023-06-25 18:36:02 +07:00
|
|
|
|
|
|
|
|
|
|
}
|
2023-06-26 10:15:50 +07:00
|
|
|
|
}
|