public DictionaryController(SWAT_UpdateChecklistsContext ctx, IHttpContextAccessor httpContextAccessor)
 {
     _ctx = ctx;
     this.httpContextAccessor = httpContextAccessor;
     user = this.httpContextAccessor.HttpContext.User.Identity.Name;
     // user = User.Identity.Name;
     // user = WindowsIdentity.GetCurrent().Name;
     user = user.Substring(user.IndexOf(@"\") + 1);
 }
 public ChecklistRepository(SWAT_UpdateChecklistsContext ctx)
 {
     _ctx = ctx;
 }
예제 #3
0
 public AuthorizedUser(SWAT_UpdateChecklistsContext ctx, IHttpContextAccessor httpContextAccessor)
 {
     this.ctx = ctx;
     this.httpContextAccessor = httpContextAccessor;
 }
예제 #4
0
 public ReportController(SWAT_UpdateChecklistsContext ctx, IMapper mapper)
 {
     _ctx    = ctx;
     _mapper = mapper;
 }
예제 #5
0
 public UpdateRepository(SWAT_UpdateChecklistsContext ctx, IMapper mapper)
 {
     _ctx        = ctx;
     this.mapper = mapper;
 }