diff --git a/StudentProgressRecord/Repositories/IDepartmentRepository.cs b/StudentProgressRecord/IRepositories/IDepartmentRepository.cs similarity index 100% rename from StudentProgressRecord/Repositories/IDepartmentRepository.cs rename to StudentProgressRecord/IRepositories/IDepartmentRepository.cs diff --git a/StudentProgressRecord/Repositories/IFacultyRepository.cs b/StudentProgressRecord/IRepositories/IFacultyRepository.cs similarity index 100% rename from StudentProgressRecord/Repositories/IFacultyRepository.cs rename to StudentProgressRecord/IRepositories/IFacultyRepository.cs diff --git a/StudentProgressRecord/Repositories/IGroupRepository.cs b/StudentProgressRecord/IRepositories/IGroupRepository.cs similarity index 100% rename from StudentProgressRecord/Repositories/IGroupRepository.cs rename to StudentProgressRecord/IRepositories/IGroupRepository.cs diff --git a/StudentProgressRecord/Repositories/IStatementReposytory.cs b/StudentProgressRecord/IRepositories/IStatementRepository.cs similarity index 91% rename from StudentProgressRecord/Repositories/IStatementReposytory.cs rename to StudentProgressRecord/IRepositories/IStatementRepository.cs index 4e561bc..e819ea1 100644 --- a/StudentProgressRecord/Repositories/IStatementReposytory.cs +++ b/StudentProgressRecord/IRepositories/IStatementRepository.cs @@ -2,7 +2,7 @@ namespace StudentProgressRecord.Repositories { - public interface IStatementReposytory + public interface IStatementRepository { IEnumerable ReadStatements(long? subjectId, long? teacherId, long? studentId, DateTime? dateTo=null, int? mark=null); Statement ReadStatementById(long id); diff --git a/StudentProgressRecord/Repositories/IStudentRepository.cs b/StudentProgressRecord/IRepositories/IStudentRepository.cs similarity index 100% rename from StudentProgressRecord/Repositories/IStudentRepository.cs rename to StudentProgressRecord/IRepositories/IStudentRepository.cs diff --git a/StudentProgressRecord/Repositories/ISubjectRepository.cs b/StudentProgressRecord/IRepositories/ISubjectRepository.cs similarity index 100% rename from StudentProgressRecord/Repositories/ISubjectRepository.cs rename to StudentProgressRecord/IRepositories/ISubjectRepository.cs diff --git a/StudentProgressRecord/Repositories/ITeacherRepository.cs b/StudentProgressRecord/IRepositories/ITeacherRepository.cs similarity index 100% rename from StudentProgressRecord/Repositories/ITeacherRepository.cs rename to StudentProgressRecord/IRepositories/ITeacherRepository.cs diff --git a/StudentProgressRecord/RepositoryImp/DepartmentRepository.cs b/StudentProgressRecord/RepositoryImp/DepartmentRepository.cs new file mode 100644 index 0000000..3e94cef --- /dev/null +++ b/StudentProgressRecord/RepositoryImp/DepartmentRepository.cs @@ -0,0 +1,38 @@ +using StudentProgressRecord.Entity; +using StudentProgressRecord.Repositories; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StudentProgressRecord.RepositoryImp +{ + public class DepartmentRepository : IDepartmentRepository + { + public void CreateDepartment(Department department) + { + + } + + public void DeleteDepartment(long id) + { + + } + + public Department ReadDepartmentById(long id) + { + return Department.CreateDepartment(0, string.Empty, 0); + } + + public IEnumerable ReadDepartments(long? facultyId = null) + { + return []; + } + + public void UpdateDepartment(Department department) + { + + } + } +} diff --git a/StudentProgressRecord/RepositoryImp/FacultyRepository.cs b/StudentProgressRecord/RepositoryImp/FacultyRepository.cs new file mode 100644 index 0000000..dc05a5d --- /dev/null +++ b/StudentProgressRecord/RepositoryImp/FacultyRepository.cs @@ -0,0 +1,38 @@ +using StudentProgressRecord.Entity; +using StudentProgressRecord.Repositories; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StudentProgressRecord.RepositoryImp +{ + public class FacultyRepository : IFacultyRepository + { + public void CreateFaculty(Faculty faculty) + { + + } + + public void DeleteFaculty(long id) + { + + } + + public IEnumerable ReadFaculties() + { + return []; + } + + public Faculty ReadFacultyById(long id) + { + return Faculty.CreateFaculty(0, string.Empty); + } + + public void UpdateFaculty(Faculty faculty) + { + + } + } +} diff --git a/StudentProgressRecord/RepositoryImp/GroupRepository.cs b/StudentProgressRecord/RepositoryImp/GroupRepository.cs new file mode 100644 index 0000000..530784f --- /dev/null +++ b/StudentProgressRecord/RepositoryImp/GroupRepository.cs @@ -0,0 +1,39 @@ +using StudentProgressRecord.Entity; +using StudentProgressRecord.Repositories; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +using System.Threading.Tasks; + +namespace StudentProgressRecord.RepositoryImp +{ + public class GroupRepository : IGroupRepository + { + public void CreateGroup(Group group) + { + + } + + public void DeleteGroup(long id) + { + + } + + public Group ReadGroupById(long id) + { + return Group.CreateGroup(0, string.Empty, 0); + } + + public IEnumerable ReadGroups(long? departmentId = null) + { + return []; + } + + public void UpdateGroup(Group group) + { + + } + } +} diff --git a/StudentProgressRecord/RepositoryImp/StatementRepository.cs b/StudentProgressRecord/RepositoryImp/StatementRepository.cs new file mode 100644 index 0000000..ac57fb2 --- /dev/null +++ b/StudentProgressRecord/RepositoryImp/StatementRepository.cs @@ -0,0 +1,38 @@ +using StudentProgressRecord.Entity; +using StudentProgressRecord.Repositories; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StudentProgressRecord.RepositoryImp +{ + public class StatementRepository : IStatementRepository + { + public void CreateStatement(Statement statement) + { + + } + + public void DeleteStatement(long id) + { + + } + + public Statement ReadStatementById(long id) + { + return Statement.CreateStatement(0, 0, 0, DateTime.Now, 0); + } + + public IEnumerable ReadStatements(long? subjectId, long? teacherId, long? studentId, DateTime? dateTo = null, int? mark = null) + { + return []; + } + + public void UpdateStatement(Statement statement) + { + + } + } +} diff --git a/StudentProgressRecord/RepositoryImp/StudentRepository.cs b/StudentProgressRecord/RepositoryImp/StudentRepository.cs new file mode 100644 index 0000000..6c08807 --- /dev/null +++ b/StudentProgressRecord/RepositoryImp/StudentRepository.cs @@ -0,0 +1,38 @@ +using StudentProgressRecord.Entity; +using StudentProgressRecord.Repositories; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StudentProgressRecord.RepositoryImp +{ + public class StudentRepository : IStudentRepository + { + public void CreateStudent(Student student) + { + + } + + public void DeleteStudent(long id) + { + + } + + public Student ReadStudentById(long id) + { + return Student.CreateStudent(0, string.Empty, false, false, 0); + } + + public IEnumerable ReadStudents(long? groupId = null, bool? familyPos = null, bool? domitory = null) + { + return []; + } + + public void UpdateStudent(Student student) + { + + } + } +} diff --git a/StudentProgressRecord/RepositoryImp/SubjectRepository.cs b/StudentProgressRecord/RepositoryImp/SubjectRepository.cs new file mode 100644 index 0000000..b86d4e9 --- /dev/null +++ b/StudentProgressRecord/RepositoryImp/SubjectRepository.cs @@ -0,0 +1,38 @@ +using StudentProgressRecord.Entity; +using StudentProgressRecord.Repositories; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StudentProgressRecord.RepositoryImp +{ + public class SubjectRepository : ISubjectRepository + { + public void CreateSubject(Subject subject) + { + + } + + public void DeleteSubject(long id) + { + + } + + public Subject ReadSubjectById(long id) + { + return Subject.CreateSubject(0, string.Empty); + } + + public IEnumerable ReadSubjects() + { + return []; + } + + public void UpdateSubject(Subject subject) + { + + } + } +} diff --git a/StudentProgressRecord/RepositoryImp/TeacherRepository.cs b/StudentProgressRecord/RepositoryImp/TeacherRepository.cs new file mode 100644 index 0000000..b335348 --- /dev/null +++ b/StudentProgressRecord/RepositoryImp/TeacherRepository.cs @@ -0,0 +1,38 @@ +using StudentProgressRecord.Entity; +using StudentProgressRecord.Repositories; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace StudentProgressRecord.RepositoryImp +{ + public class TeacherRepository : ITeacherRepository + { + public void CreateTeacher(Teacher teacher) + { + + } + + public void DeleteTeacher(long id) + { + + } + + public Teacher ReadTeacherById(long id) + { + return Teacher.CreateTeacher(0, string.Empty, 0); + } + + public IEnumerable ReadTeachers(long? departmentID = null) + { + return []; + } + + public void UpdateTeacher(Teacher teacher) + { + + } + } +}