public ActionResult BuscarClienteNombre(GestionBucket bucketCobros) { ManagerGestionCartera manage = new ManagerGestionCartera(); if (Session["agente"] == null) { return(RedirectToAction("LogOff", "Login")); } bucketCobros.cod_agente = Session["agente"].ToString(); var dto_ret = manage.BusquedaNombre(bucketCobros); return(Json(dto_ret)); }
public ActionResult BuscarCliente(GestionBucket bucketCobros) { ManagerGestionCartera manage = new ManagerGestionCartera(); if (Session["agente"] == null) { return(RedirectToAction("LogOff", "Login")); } if ((bucketCobros.Identificacion.Length != 9 && bucketCobros.Identificacion.Length != 12)) { bucketCobros.IdCredito = int.Parse(bucketCobros.Identificacion); bucketCobros.Identificacion = null; bucketCobros.Nombre = ""; } var dto_ret = manage.ObtenerEncabezado(bucketCobros); return(Json(dto_ret)); }