School Commit Init
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
using ProfessionalProfile.Domain;
|
||||
using ProfessionalProfile.Repo;
|
||||
|
||||
namespace ProfessionalProfile.Interfaces
|
||||
{
|
||||
public interface IAnswerRepo
|
||||
{
|
||||
public Answer GetById(int id);
|
||||
public ICollection<Answer> GetAll();
|
||||
public void Add(Answer item);
|
||||
public void Update(Answer item);
|
||||
public void Delete(int id);
|
||||
ICollection<Answer> GetAnswers(int questionId);
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
using ProfessionalProfile.Domain;
|
||||
|
||||
namespace ProfessionalProfile.Interfaces
|
||||
{
|
||||
public interface IAssessmentResultRepo
|
||||
{
|
||||
public AssessmentResult GetById(int id);
|
||||
public ICollection<AssessmentResult> GetAll();
|
||||
public void Add(AssessmentResult item);
|
||||
public void Update(AssessmentResult item);
|
||||
public void Delete(int id);
|
||||
public ICollection<AssessmentResult> GetAssessmentResultsByUserId(int userId);
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
using ProfessionalProfile.Domain;
|
||||
|
||||
namespace ProfessionalProfile.Interfaces
|
||||
{
|
||||
public interface IAssessmentTestRepo
|
||||
{
|
||||
public AssessmentTest GetById(int id);
|
||||
public ICollection<AssessmentTest> GetAll();
|
||||
public void Add(AssessmentTest item);
|
||||
public void Update(AssessmentTest item);
|
||||
public void Delete(int id);
|
||||
public int GetIdByName(string testName);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using ProfessionalProfile.Domain;
|
||||
|
||||
namespace ProfessionalProfile.Interfaces
|
||||
{
|
||||
public interface IBusinessCardRepo
|
||||
{
|
||||
public BusinessCard GetById(int id);
|
||||
public ICollection<BusinessCard> GetAll();
|
||||
public void Add(BusinessCard item);
|
||||
public void Update(BusinessCard item);
|
||||
public void Delete(int id);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using ProfessionalProfile.Domain;
|
||||
|
||||
namespace ProfessionalProfile.Interfaces
|
||||
{
|
||||
public interface ICertificateRepo
|
||||
{
|
||||
public Certificate GetById(int id);
|
||||
public ICollection<Certificate> GetAll();
|
||||
public void Add(Certificate item);
|
||||
public void Update(Certificate item);
|
||||
public void Delete(int id);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using ProfessionalProfile.Domain;
|
||||
|
||||
namespace ProfessionalProfile.Interfaces
|
||||
{
|
||||
public interface IEducationRepo
|
||||
{
|
||||
public Education GetById(int id);
|
||||
public ICollection<Education> GetAll();
|
||||
public void Add(Education item);
|
||||
public void Update(Education item);
|
||||
public void Delete(int id);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using ProfessionalProfile.Domain;
|
||||
|
||||
namespace ProfessionalProfile.Interfaces
|
||||
{
|
||||
public interface IEndorsementRepo
|
||||
{
|
||||
public Endorsement GetById(int id);
|
||||
public ICollection<Endorsement> GetAll();
|
||||
public void Add(Endorsement item);
|
||||
public void Update(Endorsement item);
|
||||
public void Delete(int id);
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
using ProfessionalProfile.Domain;
|
||||
|
||||
namespace ProfessionalProfile.Interfaces
|
||||
{
|
||||
public interface INotificationRepo
|
||||
{
|
||||
public Notification GetById(int id);
|
||||
public ICollection<Notification> GetAll();
|
||||
public void Add(Notification item);
|
||||
public void Update(Notification item);
|
||||
public void Delete(int id);
|
||||
public List<Notification> GetAllByUserId(int userId);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using ProfessionalProfile.Domain;
|
||||
|
||||
namespace ProfessionalProfile.Interfaces
|
||||
{
|
||||
public interface IPrivacyRepo
|
||||
{
|
||||
public Privacy GetById(int id);
|
||||
public ICollection<Privacy> GetAll();
|
||||
public void Add(Privacy item);
|
||||
public void Update(Privacy item);
|
||||
public void Delete(int id);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using ProfessionalProfile.Domain;
|
||||
|
||||
namespace ProfessionalProfile.Interfaces
|
||||
{
|
||||
public interface IProjectRepo
|
||||
{
|
||||
public Project GetById(int id);
|
||||
public ICollection<Project> GetAll();
|
||||
public void Add(Project item);
|
||||
public void Update(Project item);
|
||||
public void Delete(int id);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using ProfessionalProfile.Domain;
|
||||
|
||||
namespace ProfessionalProfile.Interfaces
|
||||
{
|
||||
public interface IQuestionRepo
|
||||
{
|
||||
public Question GetById(int id);
|
||||
public ICollection<Question> GetAll();
|
||||
public void Add(Question item);
|
||||
public void Update(Question item);
|
||||
public void Delete(int id);
|
||||
public int GetIdByNameAndAssessmentId(string questionName, int assessmentId);
|
||||
public List<Question> GetAllByTestId(int testId);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
using ProfessionalProfile.Domain;
|
||||
|
||||
namespace ProfessionalProfile.Interfaces
|
||||
{
|
||||
public interface ISkillRepo
|
||||
{
|
||||
public Skill GetById(int id);
|
||||
public ICollection<Skill> GetAll();
|
||||
public void Add(Skill item);
|
||||
public void Update(Skill item);
|
||||
public void Delete(int id);
|
||||
public List<Skill> GetByUserId(int userId);
|
||||
public int GetIdByName(string name);
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
using ProfessionalProfile.Domain;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProfessionalProfile.Interfaces
|
||||
{
|
||||
public interface IUserRepoInterface
|
||||
{
|
||||
public User GetById(int id);
|
||||
public ICollection<User> GetAll();
|
||||
public void Add(User item);
|
||||
public void Update(User item);
|
||||
public void Delete(int id);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using ProfessionalProfile.Domain;
|
||||
|
||||
namespace ProfessionalProfile.Interfaces
|
||||
{
|
||||
public interface IVolunteeringRepo
|
||||
{
|
||||
public Volunteering GetById(int id);
|
||||
public ICollection<Volunteering> GetAll();
|
||||
public void Add(Volunteering item);
|
||||
public void Update(Volunteering item);
|
||||
public void Delete(int id);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using ProfessionalProfile.Domain;
|
||||
|
||||
namespace ProfessionalProfile.Interfaces
|
||||
{
|
||||
public interface IWorkExperienceRepo
|
||||
{
|
||||
public WorkExperience GetById(int id);
|
||||
public ICollection<WorkExperience> GetAll();
|
||||
public void Add(WorkExperience item);
|
||||
public void Update(WorkExperience item);
|
||||
public void Delete(int id);
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProfessionalProfile.Repo
|
||||
{
|
||||
public interface IRepoInterface<T>
|
||||
{
|
||||
public T GetById(int id);
|
||||
public ICollection<T> GetAll();
|
||||
public void Add(T item);
|
||||
public void Update(T item);
|
||||
public void Delete(int id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user