Add project files.

This commit is contained in:
2025-05-01 15:18:30 +03:00
parent e058ab8015
commit 774d695414
3094 changed files with 1336814 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
using ConstructorApp.BusinessLayer.Abstract;
using ConstructorApp.DataAccessLayer.Abstract;
using ConstructorApp.EntityLayer.Entities;
namespace ConstructorApp.BusinessLayer.Concrete
{
public class TestimonialManager : ITestimonialService
{
private readonly ITestimonialDal _testimonialDal;
public TestimonialManager(ITestimonialDal testimonialDal)
{
_testimonialDal = testimonialDal;
}
public void TAdd(Testimonial entity)
{
_testimonialDal.Add(entity);
}
public int TCountAll()
{
return _testimonialDal.CountAll();
}
public void TDelete(Testimonial entity)
{
_testimonialDal.Delete(entity);
}
public Testimonial TGetByID(int id)
{
return _testimonialDal.GetByID(id);
}
public List<Testimonial> TGetListAll()
{
return _testimonialDal.GetListAll();
}
public void TTestimonialStatusActive(int id)
{
_testimonialDal.TestimonialStatusActive(id);
}
public void TTestimonialStatusPassive(int id)
{
_testimonialDal.TestimonialStatusPassive(id);
}
public void TUpdate(Testimonial entity)
{
_testimonialDal.Update(entity);
}
}
}