Example #1
0
 public void Configure(IApplicationBuilder app, IHostingEnvironment env, TimesheetDb db)
 {
     app.UseCors("CorsPolicy");
     if (env.IsDevelopment())
     {
         app.UseDeveloperExceptionPage();
     }
     db.Database.Migrate();
     app.UseMvc();
 }
 public EmployeeController(TimesheetDb db)
 {
     _db = db;
     this.employeeService = new EmployeeService(_db);
 }
Example #3
0
 public EmployeeService(TimesheetDb dbContext)
 {
     this.db = dbContext;
 }
Example #4
0
 public TasksService(TimesheetDb dbContext)
 {
     this._db = dbContext;
 }
Example #5
0
 public TimesheetService(TimesheetDb dbContext)
 {
     this.db = dbContext;
 }
Example #6
0
 public EmployeeService(TimesheetDb dbContext, IWorklogService worklogService)
 {
     this.db             = dbContext;
     this.worklogService = worklogService;
 }
Example #7
0
 public WorklogService(TimesheetDb dbContext)
 {
     this.db = dbContext;
 }
 public TasksController(TimesheetDb dbContext)
 {
     this.db = dbContext;
 }
Example #9
0
 public TaskService(TimesheetDb db)
 {
     this.db = db;
 }
Example #10
0
 public TaskService(TimesheetDb db)
 {
     _timeSheetDb = db;
 }
 public EmployeeService(TimesheetDb dbContext, IMapper mapper)
 {
     db      = dbContext;
     _mapper = mapper;
 }
Example #12
0
 public TaskDetailsService(TimesheetDb dbContext)
 {
     this.db = dbContext;
 }
 public EmployeeController(TimesheetDb dbContext)
 {
     this.db = dbContext;
 }