public TempUpdateDiamodsHendler(UpdateDiamondsModel model, HttpContextBase httpContext, ICSVParser csvParser, IDatabasePersistence db) { this.model = model; this.httpContext = httpContext; this.csvParser = csvParser; this.db = db; }
public ActionResult UpdateDiamonds(UpdateDiamondsModel model) { var parser = new TempUpdateDiamodsHendler(model, HttpContext, csvParser, databasePersistence); parser.ParseAndSave(); return View(); }