Add project files.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using ConstructorApp.DataAccessLayer.Abstract;
|
||||
using ConstructorApp.DataAccessLayer.Concrete;
|
||||
using ConstructorApp.DataAccessLayer.Repositories;
|
||||
using ConstructorApp.EntityLayer.Entities;
|
||||
|
||||
namespace ConstructorApp.DataAccessLayer.EntityFramework
|
||||
{
|
||||
public class EfFooterDal : GenericRepository<Footer>, IFooterDal
|
||||
{
|
||||
private readonly ConstructorContext _context;
|
||||
public EfFooterDal(ConstructorContext context) : base(context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
|
||||
public Footer GetFooterDetails()
|
||||
{
|
||||
return _context.Footer.FirstOrDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user