public CreateModel(MemorialContext context, IConfiguration config) { _context = context; _fileSizeLimit = config.GetValue <long>("FileSizeLimit"); // To save physical files to path provided by configuration: _targetFilePath = config.GetValue <string>("StoredFilesPath"); // To save physical files to temporary files folder, use: //_targetFilePath = Path.GetTempPath(); }
public EditModel(MemorialContext memorialContext, IntermentContext intermentContext) { _memorialContext = memorialContext; _intermentContext = intermentContext; }
public DeleteModel(MemorialContext memorialContext, IntermentContext intermentContext) { _memorialContext = memorialContext; _intermentContext = intermentContext; }
public IndexModel(MemorialContext context) { _context = context; }