public ReportController(ILogger <ReportController> logger, DbContext db) { _logger = logger; _storage = new Storage(db); _timeTrackingService = new YouTrackService(); _chartService = new ChartService(); }
public TrackTimeApiController( UserAccount currentUser, ITimeTrackingService timeTrackingService, IUserService userService, IProjectService projectService) { if (timeTrackingService == null) { throw new ArgumentNullException("timeTrackingService"); } if (currentUser == null) { throw new ArgumentNullException("currentUser"); } if (userService == null) { throw new ArgumentNullException("userService"); } if (projectService == null) { throw new ArgumentNullException("projectService"); } _timeTrackingService = timeTrackingService; _userService = userService; _projectService = projectService; _currentUser = currentUser; }
public DashboardUserTrackingViewModel(ITimeTrackingService timeTrackingService) { _timeTrackingService = timeTrackingService; WeekDayUserTrackingHours = new List <WeekDayUserTrackingHoursViewModel>(); }
public TimeTrackingController(ITimeTrackingService service, HttpResponseService response) { this._service = service; this._response = response; }