public JsonResult newRemesa(int id) { if (id == 0) { return(Json(remesax.New())); } remesax.context.Configuration.ProxyCreationEnabled = false; return(Json(remesax.GetByID(id))); }
public ActionResult Index() { cambio.context.Configuration.ProxyCreationEnabled = false; var cambiox = cambio.GetActualChange(); var remesax = remesas.New(); ViewBag.cambiox = JsonConvert.SerializeObject(cambiox); ViewBag.remesas = JsonConvert.SerializeObject(remesax); return(View()); }