コード例 #1
0
 public ShipOrderController()
 {
     _context  = new ApplicationDbContext();
     _userName = HttpContext.Current.User.Identity.Name.Split('@')[0];
     _manager  = new ShipOrderManager();
 }
コード例 #2
0
 public ShipOrderController()
 {
     _context  = new ApplicationDbContext();
     _userName = HttpContext.Current.User.Identity.Name.Split('@')[0] == "" ? (HttpContext.Current.Request.Headers.Get("AppUser") == null ? "" : HttpContext.Current.Request.Headers.Get("AppUser")) : HttpContext.Current.User.Identity.Name.Split('@')[0];
     _manager  = new ShipOrderManager();
 }