Пример #1
0
        Task <Project> IProjectRepository.GetProject(int?Id)
        {
            ProjectFromRepository dataBase = new ProjectFromRepository(_db);

            return(dataBase.GetProject(Id));
        }
Пример #2
0
        Task <bool> IProjectRepository.DeleteProject(int?Id)
        {
            ProjectFromRepository dataBase = new ProjectFromRepository(_db);

            return(dataBase.DeleteProject(Id));
        }
Пример #3
0
        Task <bool> IProjectRepository.EditProject(Project project, int?Id)
        {
            ProjectFromRepository dataBase = new ProjectFromRepository(_db);

            return(dataBase.EditProject(project, Id));
        }
Пример #4
0
        Task <int> IProjectRepository.CreateProject(Project project)
        {
            ProjectFromRepository dataBase = new ProjectFromRepository(_db);

            return(dataBase.AddProject(project));
        }