public JsonResult Create(Company company) { //company = _iFCompany.Create(company); //return View(company); try { company = _iFCompany.Create(company); return(Json("")); } catch (Exception ex) { return(Json(ex)); } }
public ActionResult Create(Company company) { var createdCompany = _iFCompany.Create(UserId, company); return(RedirectToAction("Index")); }