diff --git a/StudentProgressRecord/Entity/Statement.cs b/StudentProgressRecord/Entity/Statement.cs deleted file mode 100644 index a6ec764..0000000 --- a/StudentProgressRecord/Entity/Statement.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace StudentProgressRecord.Entity -{ - public class Statement - { - public long Id { get; set; } - - public long SubjectId { get; set; } - - public long TeacherId { get; set; } - - public DateTime Date { get; set; } - - public IEnumerable Marks { get; private set; } = []; - - public static Statement CreateOperation(long id, long subjectId, long teacherId, - DateTime timeStamp, IEnumerable marks) - { - return new Statement - { - Id = id, - SubjectId = subjectId, - TeacherId = teacherId, - Date = timeStamp, - Marks = marks - }; - } - - } -} diff --git a/StudentProgressRecord/IRepositories/IStatementRepository.cs b/StudentProgressRecord/IRepositories/IStatementRepository.cs deleted file mode 100644 index 05f2b28..0000000 --- a/StudentProgressRecord/IRepositories/IStatementRepository.cs +++ /dev/null @@ -1,12 +0,0 @@ -using StudentProgressRecord.Entity; - -namespace StudentProgressRecord.Repositories -{ - public interface IStatementRepository - { - IEnumerable ReadStatements(long? subjectId = null, long? teacherId = null, DateTime? dateFrom = null, DateTime? dateTo=null); - - void CreateStatement(Statement statement); - void DeleteStatement(long id); - } -} diff --git a/StudentProgressRecord/IRepositories/IStudentRepository.cs b/StudentProgressRecord/IRepositories/IStudentRepository.cs deleted file mode 100644 index 3990746..0000000 --- a/StudentProgressRecord/IRepositories/IStudentRepository.cs +++ /dev/null @@ -1,18 +0,0 @@ -using StudentProgressRecord.Entity; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace StudentProgressRecord.Repositories -{ - public interface IStudentRepository - { - IEnumerable ReadStudents(bool? familyPos=null, bool? domitory=null); - Student ReadStudentById(long id); - void CreateStudent(Student student); - void UpdateStudent(Student student); - void DeleteStudent(long id); - } -} diff --git a/StudentProgressRecord/IRepositories/IStudentTransitionRepository.cs b/StudentProgressRecord/IRepositories/IStudentTransitionRepository.cs deleted file mode 100644 index 21a1d6d..0000000 --- a/StudentProgressRecord/IRepositories/IStudentTransitionRepository.cs +++ /dev/null @@ -1,18 +0,0 @@ -using StudentProgressRecord.Entity; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace StudentProgressRecord.IRepositories -{ - public interface IStudentTransitionRepository - { - - IEnumerable ReadStudentTransitions(long? groupId = null, bool? familyPos = null, bool? domitory = null); - StudentTransition ReadStudentTransitionById(long id); - void CreateStudentTransition(StudentTransition studentTransition); - void DeleteStudentTransition(long id); - } -} diff --git a/StudentProgressRecord/IRepositories/ISubjectRepository.cs b/StudentProgressRecord/IRepositories/ISubjectRepository.cs deleted file mode 100644 index a5e3dec..0000000 --- a/StudentProgressRecord/IRepositories/ISubjectRepository.cs +++ /dev/null @@ -1,18 +0,0 @@ -using StudentProgressRecord.Entity; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace StudentProgressRecord.Repositories -{ - public interface ISubjectRepository - { - IEnumerable ReadSubjects(); - Subject ReadSubjectById(long id); - void CreateSubject(Subject subject); - void UpdateSubject(Subject subject); - void DeleteSubject(long id); - } -} diff --git a/StudentProgressRecord/IRepositories/ITeacherRepository.cs b/StudentProgressRecord/IRepositories/ITeacherRepository.cs deleted file mode 100644 index f88c92f..0000000 --- a/StudentProgressRecord/IRepositories/ITeacherRepository.cs +++ /dev/null @@ -1,19 +0,0 @@ -using StudentProgressRecord.Entity; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace StudentProgressRecord.Repositories -{ - public interface ITeacherRepository - { - - IEnumerable ReadTeachers(long? departmentID = null); - Teacher ReadTeacherById(long id); - void CreateTeacher(Teacher teacher); - void UpdateTeacher(Teacher teacher); - void DeleteTeacher(long id); - } -} diff --git a/StudentProgressRecord/Program.cs b/StudentProgressRecord/Program.cs index e88baeb..1334db3 100644 --- a/StudentProgressRecord/Program.cs +++ b/StudentProgressRecord/Program.cs @@ -19,29 +19,5 @@ namespace StudentProgressRecord ApplicationConfiguration.Initialize(); Application.Run(CreateContainer().Resolve()); } - - private static IUnityContainer CreateContainer() - { - var container = new UnityContainer(); - - - container.RegisterType - (new TransientLifetimeManager()); - - container.RegisterType - (new TransientLifetimeManager()); - - container.RegisterType - (new TransientLifetimeManager()); - - container.RegisterType - (new TransientLifetimeManager()); - - container.RegisterType - (new TransientLifetimeManager()); - - return container; - } - } } \ No newline at end of file diff --git a/StudentProgressRecord/RepositoryImp/StatementRepository.cs b/StudentProgressRecord/RepositoryImp/StatementRepository.cs deleted file mode 100644 index ec4736d..0000000 --- a/StudentProgressRecord/RepositoryImp/StatementRepository.cs +++ /dev/null @@ -1,29 +0,0 @@ -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 IEnumerable ReadStatements(long? subjectId = null, long? teacherId = null, - DateTime? dateFrom = null, DateTime? dateTo = null) - { - return []; - } - } -} diff --git a/StudentProgressRecord/RepositoryImp/StudentRepository.cs b/StudentProgressRecord/RepositoryImp/StudentRepository.cs deleted file mode 100644 index a4ce0a1..0000000 --- a/StudentProgressRecord/RepositoryImp/StudentRepository.cs +++ /dev/null @@ -1,38 +0,0 @@ -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.CreateEntity(0, string.Empty, false , false); - } - - public IEnumerable ReadStudents(bool? familyPos = null, bool? domitory = null) - { - return []; - } - - public void UpdateStudent(Student student) - { - - } - } -} diff --git a/StudentProgressRecord/Resources/Ulstu.jpg b/StudentProgressRecord/Resources/Ulstu.jpg deleted file mode 100644 index e35b62c..0000000 Binary files a/StudentProgressRecord/Resources/Ulstu.jpg and /dev/null differ