コード例 #1
0
        public KhachHangController(NhatNgheWebAPIContext ctx, IConfiguration configuration)
        {
            _context = ctx;
            var secretKey = configuration["AppSettings:SecretKey"];

            _KeyBytes = Encoding.UTF8.GetBytes(secretKey);
        }
コード例 #2
0
 public LoaiController(NhatNgheWebAPIContext db, IMapper mapper)
 {
     _context = db;
     _mapper  = mapper;
 }
コード例 #3
0
 public ThongKeController(NhatNgheWebAPIContext ctx)
 {
     _context = ctx;
 }
コード例 #4
0
 public LoaiController(NhatNgheWebAPIContext db)
 {
     _context = db;
 }
コード例 #5
0
 public HangHoaController(NhatNgheWebAPIContext ctx, IConfiguration config, IMapper mapper)
 {
     _context             = ctx;
     _mapper              = mapper;
     SO_PHAN_TU_MOI_TRANG = int.Parse(config["PagingConfig:NumberOfRecord"]);
 }
コード例 #6
0
 public DonHangController(NhatNgheWebAPIContext ctx)
 {
     _context = ctx;
 }