コード例 #1
0
 public CreateModel(WebPortalAPI.Data.ApplicationDbContext context, IMapper mapper, IHostingEnvironment env)
 {
     _context   = context;
     _env       = env;
     _mapper    = mapper;
     FileUpload = new FileUploadVM(_context, _env);
 }
コード例 #2
0
 public EditModel(WebPortalAPI.Data.ApplicationDbContext context, IHostingEnvironment env, IMapper mapper)
 {
     _context     = context;
     _mapper      = mapper;
     _env         = env;
     fileuploadVM = new FileUploadVM(_context, _env);
 }
コード例 #3
0
 public DetailsModel(WebPortalAPI.Data.ApplicationDbContext context)
 {
     _context = context;
 }
コード例 #4
0
        public IndexModel(WebPortalAPI.Data.ApplicationDbContext context)
        {
            _context = context;

            //CrimeDepartment crime = new CrimeDepartment();
        }
コード例 #5
0
 public IndexModel(WebPortalAPI.Data.ApplicationDbContext context)
 {
     _context = context;
 }
コード例 #6
0
 public CreateModel(WebPortalAPI.Data.ApplicationDbContext context, IMapper mapper, IHostingEnvironment env)
 {
     _context = context;
     _mapper  = mapper;
     _env     = env;
 }