public EditModel(RecipeCollections.Data.ApplicationDbContext context, IWebHostEnvironment hostEnvironment, IUnitOfWork unitOfWork)
 {
     _context         = context;
     _hostEnvironment = hostEnvironment;
     _unitOfWork      = unitOfWork;
 }
Example #2
0
 public EditModel(RecipeCollections.Data.ApplicationDbContext context)
 {
     _context = context;
 }
 public DeleteModel(ApplicationDbContext context, IWebHostEnvironment hostEnvironment, IUnitOfWork unitOfWork)
 {
     _context         = context;
     _hostEnvironment = hostEnvironment;
     _unitOfWork      = unitOfWork;
 }