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) }; }
public List <ProjectModel> GetProject() { ProjectManagerDL = new ProjectManagerDL(); return(ProjectManagerDL.GetProject()); }
public void DeleteProject(int ProjectId) { ProjectManagerDL = new ProjectManagerDL(); ProjectManagerDL.DeleteProject(ProjectId); }
public List <ProjectModel> GetManager(string name) { ProjectManagerDL = new ProjectManagerDL(); return(ProjectManagerDL.GetManager(name)); }