Example #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);
            }
        }
Example #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);
            }
        }
Example #3
0
 public async Task EditProject(ProjectDto model)
 {
     using (var projectDao = new ProjectDao())
     {
         await projectDao.EditAsync(new Project()
         {
             Id               = model.Id,
             ProjectName      = model.ProjectName,
             WBSCode          = model.WBSCode,
             SmallProjectName = model.SmallProjectName,
             SmallWBSCode     = model.SmallWBSCode,
             Funds            = model.Funds,
             VoltageGrade     = model.VoltageGrade,
             SysDepartId      = model.SysDepartId,
             PickingPeople    = model.PickingPeople,
             ContactNumber    = model.ContactNumber,
         });
     }
 }