public ActionResult Create(Contacto contacto, int id) { BLLContacto bll = new BLLContacto(); contacto.idempresa = id; contacto.id = 0; bll.CreateContacto(contacto); return(RedirectToAction("Index", new { id = id })); }
public ActionResult Index(int id) { var cp = new BLLContacto(); var lista = cp.ListByCompanyID(id); var btc = new BLLTipoContacto(); ViewData["TipoContacto"] = btc.All(); //var transporte = new Transporte(); //TempData["mydata"] = transporte.IdProveedor; return(View(lista)); }