Пример #1
0
        public async Task EditProject(Guid projectId, string name)
        {
            using (var projectDao = new ProjectDao())
            {
                var project = await projectDao.GetOneByIdAsync(projectId);

                project.Name = name;

                await projectDao.EditAsync(project);
            }
        }
Пример #2
0
        public async Task EditProject(Guid projectId, string name, string wBSCode, string smallaProject, string smallWBSCode, string nitialApprovalFunds, string voltageGrade, string projectDepartment, string pickingPeople, string contactNumber)
        {
            using (var projectDao = new ProjectDao())
            {
                var project = await projectDao.GetOneByIdAsync(projectId);

                project.Name                = name;
                project.WBSCode             = wBSCode;
                project.SmallaProject       = smallaProject;
                project.SmallWBSCode        = smallWBSCode;
                project.NitialApprovalFunds = nitialApprovalFunds;
                project.VoltageGrade        = voltageGrade;
                project.ProjectDepartment   = projectDepartment;
                project.PickingPeople       = pickingPeople;
                project.ContactNumber       = contactNumber;
                await projectDao.EditAsync(project);
            }
        }