public ActionResult AgregarContacto(ContactoViewModel model)
        {
            if (ModelState.IsValid)
            {
                var contacto = new Contacto();
                GlobalHelpers.Transfer<ContactoViewModel, Contacto>(model, contacto);
                contacto.IdUserProfile = WebSecurity.CurrentUserId;
                db.Contactoes.Add(contacto);
                db.SaveChanges();

                ViewBag.Exito = true;
                return Json(true, JsonRequestBehavior.AllowGet);
            }

            ViewBag.Exito = false;
            return Json(false, JsonRequestBehavior.AllowGet);
        }
        public ActionResult EditarContacto(ContactoViewModel model)
        {
            if (ModelState.IsValid)
            {
                var contacto = db.Contactoes.Find(model.Id);
                GlobalHelpers.Transfer<ContactoViewModel, Contacto>(model, contacto, "IdUserProfile");
                db.Entry(contacto).State = System.Data.EntityState.Modified;
                db.SaveChanges();

                ViewBag.Exito = true;
                return Json(true, JsonRequestBehavior.AllowGet);
            }

            ViewBag.Exito = false;
            return Json(false, JsonRequestBehavior.AllowGet);
        }