Add project files.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
using ConstructorApp.EntityLayer.Entities;
|
||||
|
||||
namespace ConstructorApp.DataAccessLayer.Abstract
|
||||
{
|
||||
public interface ICompanyInfoDal : IGenericDal<CompanyInfo>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using ConstructorApp.EntityLayer.Entities;
|
||||
|
||||
namespace ConstructorApp.DataAccessLayer.Abstract
|
||||
{
|
||||
public interface ICompanyInfoVideoDal : IGenericDal<CompanyInfoVideo>
|
||||
{
|
||||
}
|
||||
}
|
||||
11
ConstructorApp.DataAccessLayer/Abstract/IContactUsDal.cs
Normal file
11
ConstructorApp.DataAccessLayer/Abstract/IContactUsDal.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using ConstructorApp.EntityLayer.Entities;
|
||||
|
||||
namespace ConstructorApp.DataAccessLayer.Abstract
|
||||
{
|
||||
public interface IContactUsDal : IGenericDal<ContactUs>
|
||||
{
|
||||
int CountByStatusPending();
|
||||
int CountAll();
|
||||
void MarkAsRead(int id);
|
||||
}
|
||||
}
|
||||
9
ConstructorApp.DataAccessLayer/Abstract/IFooterDal.cs
Normal file
9
ConstructorApp.DataAccessLayer/Abstract/IFooterDal.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using ConstructorApp.EntityLayer.Entities;
|
||||
|
||||
namespace ConstructorApp.DataAccessLayer.Abstract
|
||||
{
|
||||
public interface IFooterDal : IGenericDal<Footer>
|
||||
{
|
||||
Footer GetFooterDetails();
|
||||
}
|
||||
}
|
||||
12
ConstructorApp.DataAccessLayer/Abstract/IGenericDal.cs
Normal file
12
ConstructorApp.DataAccessLayer/Abstract/IGenericDal.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace ConstructorApp.DataAccessLayer.Abstract
|
||||
{
|
||||
public interface IGenericDal<T> where T : class
|
||||
{
|
||||
void Add(T entity);
|
||||
void Delete(T entity);
|
||||
void Update(T entity);
|
||||
T GetByID(int id);
|
||||
List<T> GetListAll();
|
||||
Task<List<T>> GetListAllAsync();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using ConstructorApp.EntityLayer.Entities;
|
||||
|
||||
namespace ConstructorApp.DataAccessLayer.Abstract
|
||||
{
|
||||
public interface IHomeBannerDal : IGenericDal<HomeBanner>
|
||||
{
|
||||
}
|
||||
}
|
||||
13
ConstructorApp.DataAccessLayer/Abstract/IProjectDal.cs
Normal file
13
ConstructorApp.DataAccessLayer/Abstract/IProjectDal.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using ConstructorApp.EntityLayer.Entities;
|
||||
|
||||
namespace ConstructorApp.DataAccessLayer.Abstract
|
||||
{
|
||||
public interface IProjectDal : IGenericDal<Project>
|
||||
{
|
||||
void ProjectStatusActive(int id);
|
||||
void rojectStatusPassive(int id);
|
||||
int CountAll();
|
||||
Project GetBySlug(string slug);
|
||||
Project GetProjectWithImagesBySlug(string slug);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using ConstructorApp.EntityLayer.Entities;
|
||||
|
||||
namespace ConstructorApp.DataAccessLayer.Abstract
|
||||
{
|
||||
public interface IProjectGalleryDal : IGenericDal<ProjectGallery>
|
||||
{
|
||||
List<ProjectGallery> GetImagesByProjectId(int projectId);
|
||||
}
|
||||
}
|
||||
9
ConstructorApp.DataAccessLayer/Abstract/IReferenceDal.cs
Normal file
9
ConstructorApp.DataAccessLayer/Abstract/IReferenceDal.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using ConstructorApp.EntityLayer.Entities;
|
||||
|
||||
namespace ConstructorApp.DataAccessLayer.Abstract
|
||||
{
|
||||
public interface IReferenceDal : IGenericDal<Reference>
|
||||
{
|
||||
int CountAll();
|
||||
}
|
||||
}
|
||||
10
ConstructorApp.DataAccessLayer/Abstract/IServiceDal.cs
Normal file
10
ConstructorApp.DataAccessLayer/Abstract/IServiceDal.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using ConstructorApp.EntityLayer.Entities;
|
||||
|
||||
namespace ConstructorApp.DataAccessLayer.Abstract
|
||||
{
|
||||
public interface IServiceDal : IGenericDal<Service>
|
||||
{
|
||||
void ServiceStatusActive(int id);
|
||||
void ServiceStatusPassive(int id);
|
||||
}
|
||||
}
|
||||
8
ConstructorApp.DataAccessLayer/Abstract/ISliderDal.cs
Normal file
8
ConstructorApp.DataAccessLayer/Abstract/ISliderDal.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using ConstructorApp.EntityLayer.Entities;
|
||||
|
||||
namespace ConstructorApp.DataAccessLayer.Abstract
|
||||
{
|
||||
public interface ISliderDal : IGenericDal<Slider>
|
||||
{
|
||||
}
|
||||
}
|
||||
8
ConstructorApp.DataAccessLayer/Abstract/ITeamDal.cs
Normal file
8
ConstructorApp.DataAccessLayer/Abstract/ITeamDal.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using ConstructorApp.EntityLayer.Entities;
|
||||
|
||||
namespace ConstructorApp.DataAccessLayer.Abstract
|
||||
{
|
||||
public interface ITeamDal : IGenericDal<Team>
|
||||
{
|
||||
}
|
||||
}
|
||||
11
ConstructorApp.DataAccessLayer/Abstract/ITestimonialDal.cs
Normal file
11
ConstructorApp.DataAccessLayer/Abstract/ITestimonialDal.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using ConstructorApp.EntityLayer.Entities;
|
||||
|
||||
namespace ConstructorApp.DataAccessLayer.Abstract
|
||||
{
|
||||
public interface ITestimonialDal : IGenericDal<Testimonial>
|
||||
{
|
||||
void TestimonialStatusActive(int id);
|
||||
void TestimonialStatusPassive(int id);
|
||||
int CountAll();
|
||||
}
|
||||
}
|
||||
10
ConstructorApp.DataAccessLayer/Abstract/IWorkProcessDal.cs
Normal file
10
ConstructorApp.DataAccessLayer/Abstract/IWorkProcessDal.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using ConstructorApp.EntityLayer.Entities;
|
||||
|
||||
namespace ConstructorApp.DataAccessLayer.Abstract
|
||||
{
|
||||
public interface IWorkProcessDal : IGenericDal<WorkProcess>
|
||||
{
|
||||
void ServiceStatusActive(int id);
|
||||
void ServiceStatusPassive(int id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user