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,41 @@
using ConstructorApp.BusinessLayer.Abstract;
using ConstructorApp.DataAccessLayer.Abstract;
using ConstructorApp.EntityLayer.Entities;
namespace ConstructorApp.BusinessLayer.Concrete
{
public class CompanyInfoManager : ICompanyInfoService
{
private readonly ICompanyInfoDal _companyInfoDal;
public CompanyInfoManager(ICompanyInfoDal companyInfoDal)
{
_companyInfoDal = companyInfoDal;
}
public void TAdd(CompanyInfo entity)
{
_companyInfoDal.Add(entity);
}
public void TDelete(CompanyInfo entity)
{
_companyInfoDal.Delete(entity);
}
public CompanyInfo TGetByID(int id)
{
return _companyInfoDal.GetByID(id);
}
public List<CompanyInfo> TGetListAll()
{
return _companyInfoDal.GetListAll();
}
public void TUpdate(CompanyInfo entity)
{
_companyInfoDal.Update(entity);
}
}
}

View File

@@ -0,0 +1,41 @@
using ConstructorApp.BusinessLayer.Abstract;
using ConstructorApp.DataAccessLayer.Abstract;
using ConstructorApp.EntityLayer.Entities;
namespace ConstructorApp.BusinessLayer.Concrete
{
public class CompanyInfoVideoManager : ICompanyInfoVideoService
{
private readonly ICompanyInfoVideoDal _companyInfoVideoDal;
public CompanyInfoVideoManager(ICompanyInfoVideoDal companyInfoVideoDal)
{
_companyInfoVideoDal = companyInfoVideoDal;
}
public void TAdd(CompanyInfoVideo entity)
{
_companyInfoVideoDal.Add(entity);
}
public void TDelete(CompanyInfoVideo entity)
{
_companyInfoVideoDal.Delete(entity);
}
public CompanyInfoVideo TGetByID(int id)
{
return _companyInfoVideoDal.GetByID(id);
}
public List<CompanyInfoVideo> TGetListAll()
{
return _companyInfoVideoDal.GetListAll();
}
public void TUpdate(CompanyInfoVideo entity)
{
_companyInfoVideoDal.Update(entity);
}
}
}

View File

@@ -0,0 +1,56 @@
using ConstructorApp.BusinessLayer.Abstract;
using ConstructorApp.DataAccessLayer.Abstract;
using ConstructorApp.EntityLayer.Entities;
namespace ConstructorApp.BusinessLayer.Concrete
{
public class ContactUsManager : IContactUsService
{
private readonly IContactUsDal _contactUsDal;
public ContactUsManager(IContactUsDal contactUsDal)
{
_contactUsDal = contactUsDal;
}
public void TAdd(ContactUs entity)
{
_contactUsDal.Add(entity);
}
public int TCountAll()
{
return _contactUsDal.CountAll();
}
public int TCountByStatusPending()
{
return _contactUsDal.CountByStatusPending();
}
public void TDelete(ContactUs entity)
{
_contactUsDal.Delete(entity);
}
public ContactUs TGetByID(int id)
{
return _contactUsDal.GetByID(id);
}
public List<ContactUs> TGetListAll()
{
return _contactUsDal.GetListAll();
}
public void TMarkAsRead(int id)
{
_contactUsDal.MarkAsRead(id);
}
public void TUpdate(ContactUs entity)
{
_contactUsDal.Update(entity);
}
}
}

View File

@@ -0,0 +1,46 @@
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);
}
}
}

View File

@@ -0,0 +1,41 @@
using ConstructorApp.BusinessLayer.Abstract;
using ConstructorApp.DataAccessLayer.Abstract;
using ConstructorApp.EntityLayer.Entities;
namespace ConstructorApp.BusinessLayer.Concrete
{
public class HomeBannerManager : IHomeBannerService
{
private readonly IHomeBannerDal _homeBannerDal;
public HomeBannerManager(IHomeBannerDal homeBannerDal)
{
_homeBannerDal = homeBannerDal;
}
public void TAdd(HomeBanner entity)
{
_homeBannerDal.Add(entity);
}
public void TDelete(HomeBanner entity)
{
_homeBannerDal.Delete(entity);
}
public HomeBanner TGetByID(int id)
{
return _homeBannerDal.GetByID(id);
}
public List<HomeBanner> TGetListAll()
{
return _homeBannerDal.GetListAll();
}
public void TUpdate(HomeBanner entity)
{
_homeBannerDal.Update(entity);
}
}
}

View File

@@ -0,0 +1,46 @@
using ConstructorApp.BusinessLayer.Abstract;
using ConstructorApp.DataAccessLayer.Abstract;
using ConstructorApp.EntityLayer.Entities;
namespace ConstructorApp.BusinessLayer.Concrete
{
public class ProjectGalleryManager : IProjectGalleryService
{
private readonly IProjectGalleryDal _projectGalleryDal;
public ProjectGalleryManager(IProjectGalleryDal projectGalleryDal)
{
_projectGalleryDal = projectGalleryDal;
}
public void TAdd(ProjectGallery entity)
{
_projectGalleryDal.Add(entity);
}
public void TDelete(ProjectGallery entity)
{
_projectGalleryDal.Delete(entity);
}
public ProjectGallery TGetByID(int id)
{
return _projectGalleryDal.GetByID(id);
}
public List<ProjectGallery> TGetImagesByProjectId(int projectId)
{
return _projectGalleryDal.GetImagesByProjectId(projectId);
}
public List<ProjectGallery> TGetListAll()
{
return _projectGalleryDal.GetListAll();
}
public void TUpdate(ProjectGallery entity)
{
_projectGalleryDal.Update(entity);
}
}
}

View File

@@ -0,0 +1,66 @@
using ConstructorApp.BusinessLayer.Abstract;
using ConstructorApp.DataAccessLayer.Abstract;
using ConstructorApp.EntityLayer.Entities;
namespace ConstructorApp.BusinessLayer.Concrete
{
public class ProjectManager : IProjectService
{
private readonly IProjectDal _projectDal;
public ProjectManager(IProjectDal projectDal)
{
_projectDal = projectDal;
}
public void TAdd(Project entity)
{
_projectDal.Add(entity);
}
public int TCountAll()
{
return _projectDal.CountAll();
}
public void TDelete(Project entity)
{
_projectDal.Delete(entity);
}
public Project TGetByID(int id)
{
return _projectDal.GetByID(id);
}
public Project TGetBySlug(string slug)
{
return _projectDal.GetBySlug(slug);
}
public List<Project> TGetListAll()
{
return _projectDal.GetListAll();
}
public Project TGetProjectWithImagesBySlug(string slug)
{
return _projectDal.GetProjectWithImagesBySlug(slug);
}
public void TProjectStatusActive(int id)
{
_projectDal.ProjectStatusActive(id);
}
public void TProjectStatusPassive(int id)
{
_projectDal.rojectStatusPassive(id);
}
public void TUpdate(Project entity)
{
_projectDal.Update(entity);
}
}
}

View File

@@ -0,0 +1,46 @@
using ConstructorApp.BusinessLayer.Abstract;
using ConstructorApp.DataAccessLayer.Abstract;
using ConstructorApp.EntityLayer.Entities;
namespace ConstructorApp.BusinessLayer.Concrete
{
public class ReferenceManager : IReferenceService
{
private readonly IReferenceDal _referenceDal;
public ReferenceManager(IReferenceDal referenceDal)
{
_referenceDal = referenceDal;
}
public void TAdd(Reference entity)
{
_referenceDal.Add(entity);
}
public int TCountAll()
{
return _referenceDal.CountAll();
}
public void TDelete(Reference entity)
{
_referenceDal.Delete(entity);
}
public Reference TGetByID(int id)
{
return _referenceDal.GetByID(id);
}
public List<Reference> TGetListAll()
{
return _referenceDal.GetListAll();
}
public void TUpdate(Reference entity)
{
_referenceDal.Update(entity);
}
}
}

View File

@@ -0,0 +1,51 @@
using ConstructorApp.BusinessLayer.Abstract;
using ConstructorApp.DataAccessLayer.Abstract;
using ConstructorApp.EntityLayer.Entities;
namespace ConstructorApp.BusinessLayer.Concrete
{
public class ServiceManager : IServiceService
{
private readonly IServiceDal _serviceDal;
public ServiceManager(IServiceDal serviceDal)
{
_serviceDal = serviceDal;
}
public void TAdd(Service entity)
{
_serviceDal.Add(entity);
}
public void TDelete(Service entity)
{
_serviceDal.Delete(entity);
}
public Service TGetByID(int id)
{
return _serviceDal.GetByID(id);
}
public List<Service> TGetListAll()
{
return _serviceDal.GetListAll();
}
public void TServiceStatusActive(int id)
{
_serviceDal.ServiceStatusActive(id);
}
public void TServiceStatusPassive(int id)
{
_serviceDal.ServiceStatusPassive(id);
}
public void TUpdate(Service entity)
{
_serviceDal.Update(entity);
}
}
}

View File

@@ -0,0 +1,41 @@
using ConstructorApp.BusinessLayer.Abstract;
using ConstructorApp.DataAccessLayer.Abstract;
using ConstructorApp.EntityLayer.Entities;
namespace ConstructorApp.BusinessLayer.Concrete
{
public class SliderManager : ISliderService
{
private readonly ISliderDal _sliderDal;
public SliderManager(ISliderDal sliderDal)
{
_sliderDal = sliderDal;
}
public void TAdd(Slider entity)
{
_sliderDal.Add(entity);
}
public void TDelete(Slider entity)
{
_sliderDal.Delete(entity);
}
public Slider TGetByID(int id)
{
return _sliderDal.GetByID(id);
}
public List<Slider> TGetListAll()
{
return _sliderDal.GetListAll();
}
public void TUpdate(Slider entity)
{
_sliderDal.Update(entity);
}
}
}

View File

@@ -0,0 +1,41 @@
using ConstructorApp.BusinessLayer.Abstract;
using ConstructorApp.DataAccessLayer.Abstract;
using ConstructorApp.EntityLayer.Entities;
namespace ConstructorApp.BusinessLayer.Concrete
{
public class TeamManager : ITeamService
{
private readonly ITeamDal _teamDal;
public TeamManager(ITeamDal teamDal)
{
_teamDal = teamDal;
}
public void TAdd(Team entity)
{
_teamDal.Add(entity);
}
public void TDelete(Team entity)
{
_teamDal.Delete(entity);
}
public Team TGetByID(int id)
{
return _teamDal.GetByID(id);
}
public List<Team> TGetListAll()
{
return _teamDal.GetListAll();
}
public void TUpdate(Team entity)
{
_teamDal.Update(entity);
}
}
}

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);
}
}
}

View File

@@ -0,0 +1,51 @@
using ConstructorApp.BusinessLayer.Abstract;
using ConstructorApp.DataAccessLayer.Abstract;
using ConstructorApp.EntityLayer.Entities;
namespace ConstructorApp.BusinessLayer.Concrete
{
public class WorkProcessManager : IWorkProcessService
{
private readonly IWorkProcessDal _workProcessDal;
public WorkProcessManager(IWorkProcessDal workProcessDal)
{
_workProcessDal = workProcessDal;
}
public void TAdd(WorkProcess entity)
{
_workProcessDal.Add(entity);
}
public void TDelete(WorkProcess entity)
{
_workProcessDal.Delete(entity);
}
public WorkProcess TGetByID(int id)
{
return _workProcessDal.GetByID(id);
}
public List<WorkProcess> TGetListAll()
{
return _workProcessDal.GetListAll();
}
public void TServiceStatusActive(int id)
{
_workProcessDal.ServiceStatusActive(id);
}
public void TServiceStatusPassive(int id)
{
_workProcessDal.ServiceStatusPassive(id);
}
public void TUpdate(WorkProcess entity)
{
_workProcessDal.Update(entity);
}
}
}