public async Task CreateProject(string name) { using (var projectDao = new ProjectDao()) { await projectDao.CreateAsync(new Project() { Name = name, }); } }
public async Task CreateProject(Project model) { using (var projectDao = new ProjectDao()) { await projectDao.CreateAsync(new Project() { 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, }); } }
public async Task CreateProject(string name, string wBSCode, string smallaProject, string smallWBSCode, string nitialApprovalFunds, string voltageGrade, string projectDepartment, string pickingPeople, string contactNumber) { using (var projectDao = new ProjectDao()) { await projectDao.CreateAsync(new Project() { Name = name, WBSCode = wBSCode, SmallaProject = smallaProject, SmallWBSCode = smallWBSCode, NitialApprovalFunds = nitialApprovalFunds, VoltageGrade = voltageGrade, ProjectDepartment = projectDepartment, PickingPeople = pickingPeople, ContactNumber = contactNumber, }); } }