コード例 #1
0
        public string SaveProject(Project ProjectModel)
        {
            ProjectManagerDL = new ProjectManagerDL();

            string projectID = ProjectManagerDL.SaveProject(ProjectModel);

            return(projectID);
        }
        public void Setup(BenchmarkContext context)
        {
            IProjectManagerDL _dbRepo = new ProjectManagerDL();

            _projectManagerService = new ProjectManagerBL(_dbRepo);
            _newTask = new TaskEntity {
                TaskId = 1, Task = "Test project Creation", ParentId = 1, ParentTask = "Test project Creation", TaskPriority = 1, TaskStatus = "Y", StartDate = new DateTime(2018, 9, 9), EndDate = new DateTime(2018, 9, 9), ProjectId = 1, UserId = 2, AddDate = new DateTime(2018, 9, 9), UpdtDate = new DateTime(2018, 9, 9)
            };
            _taskToBeUpdated = new TaskEntity {
                TaskId = 2, Task = "Setup Creation", ParentId = 1, ParentTask = "Test project Creation", TaskPriority = 2, TaskStatus = "Y", StartDate = new DateTime(2018, 9, 9), EndDate = new DateTime(2018, 9, 9), ProjectId = 2, UserId = 1, AddDate = new DateTime(2018, 9, 9), UpdtDate = new DateTime(2018, 9, 9)
            };
        }
コード例 #3
0
        public List <ProjectModel> GetProject()
        {
            ProjectManagerDL = new ProjectManagerDL();

            return(ProjectManagerDL.GetProject());
        }
コード例 #4
0
        public void DeleteProject(int ProjectId)
        {
            ProjectManagerDL = new ProjectManagerDL();

            ProjectManagerDL.DeleteProject(ProjectId);
        }
コード例 #5
0
        public List <ProjectModel> GetManager(string name)
        {
            ProjectManagerDL = new ProjectManagerDL();

            return(ProjectManagerDL.GetManager(name));
        }