Example #1
0
        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 }));
        }
Example #2
0
        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));
        }