private async void LoggOne(ProjectEntity project, TimeSpan time, string description) { TimeTrackerService service = new TimeTrackerService() { CommitRepository = new CommitRepository(), ProjectRepository = new ProjectRepository(), EmployeeRepository = new EmployeesRepository() }; await service.LogHours(Employee, project, time, description); }
private async void LoggMultiple() { TimeTrackerService service = new TimeTrackerService() { CommitRepository = new CommitRepository(), ProjectRepository = new ProjectRepository(), EmployeeRepository = new EmployeesRepository() }; await service.LogHours(LoggedProjects, Commits); }