public ActionResult Edit(CompanyModel model) { if (!ModelState.IsValid) return View("Add", model); Mapper.Map<CompanyModel, Company>(model); return RedirectToAction("Index"); }
public ActionResult Add() { var model = new CompanyModel(); return View(model); }