public ActivityService(TimesheetDbContext context, ActivityRepository activityRepository)
 {
     this.context = new TimesheetDbContext();
     this.activityTypeRepository    = new ActivityTypeRepository(context);
     this.activityRepository        = new ActivityRepository(context);
     this.projectRoleTypeRepository = new ProjectRoleTypeRepository(context);
     this.projectRepository         = new ProjectRepository(context);
     this.email  = new Email();
     userManager = HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>();
 }
 public ProjectRoleTypeService(TimesheetDbContext context)
 {
     this.context = new TimesheetDbContext();
     this.projectRoleTypeRepository = new ProjectRoleTypeRepository(context);
 }