Files
constructdemo/ConstructorApp.BusinessLayer/Concrete/FooterManager.cs
2025-05-01 15:18:30 +03:00

47 lines
1.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using ConstructorApp.BusinessLayer.Abstract;
using ConstructorApp.DataAccessLayer.Abstract;
using ConstructorApp.EntityLayer.Entities;
namespace ConstructorApp.BusinessLayer.Concrete
{
public class FooterManager : IFooterService
{
private readonly IFooterDal _footerDal;
public FooterManager(IFooterDal footerDal)
{
_footerDal = footerDal;
}
public void TAdd(Footer entity)
{
_footerDal.Add(entity);
}
public void TDelete(Footer entity)
{
_footerDal.Delete(entity);
}
public Footer TGetByID(int id)
{
return _footerDal.GetByID(id);
}
public Footer TGetFooterDetails()
{
return _footerDal.GetFooterDetails(); // Footer bilgilerini DAL'dan alır
}
public List<Footer> TGetListAll()
{
return _footerDal.GetListAll();
}
public void TUpdate(Footer entity)
{
_footerDal.Update(entity);
}
}
}