public async Task Edit(int id, CreateProjectHourViewModel projecthourViewModel) { var projecthour = new UpdateProjectHourDto() { TableState = projecthourViewModel.TableState, Hours = projecthourViewModel.Hours, Student = projecthourViewModel.Student, Section = projecthourViewModel.Section, Project = projecthourViewModel.Project }; await _projecthourService.Update(id, projecthour); }
public async Task Create(CreateProjectHourViewModel projecthourViewModel) { var projecthour = new CreateProjectHourDto { TableState = projecthourViewModel.TableState, Hours = projecthourViewModel.Hours, Student = projecthourViewModel.Student, Section = projecthourViewModel.Section, Project = projecthourViewModel.Project }; await _projecthourService.Create(projecthour); }