Exemple #1
0
 public JsonResult Tercerpaso(Tbl_anuncio oregistro)
 {
     ClientResponse clientResponse = new ClientResponse();
     try
     {
         clientResponse = new AnuncioLogic().UpdateTercerpaso(oregistro);
     }
     catch (Exception ex)
     {
         clientResponse = Utilidades.ObtenerMensajeErrorWeb(ex);
     }
     return Json(clientResponse, JsonRequestBehavior.AllowGet);
 }
        public ClientResponse listarMisAnuncios()
        {
            ClientResponse clientResponse = new ClientResponse();

            try
            {
                clientResponse = new AnuncioLogic().ListarAnuncio();
            }
            catch (Exception ex)
            {
                clientResponse = Utilidades.ObtenerMensajeErrorWeb(ex);
            }
            return(clientResponse);
        }
        public JsonResult GetMisanuncios(string usuario_token)
        {
            ClientResponse clientResponse = new ClientResponse();

            try
            {
                clientResponse = new AnuncioLogic().MisAnuncio(usuario_token);
            }
            catch (Exception ex)
            {
                clientResponse = Utilidades.ObtenerMensajeErrorWeb(ex);
            }
            return(Json(clientResponse, JsonRequestBehavior.AllowGet));
        }
Exemple #4
0
        public ClientResponse ActualizarPrimerpaso(Tbl_anuncio oregistro)
        {
            ClientResponse clientResponse = new ClientResponse();

            try
            {
                clientResponse = new AnuncioLogic().ActualizarPrimerpaso(oregistro);
            }
            catch (Exception ex)
            {
                clientResponse = Utilidades.ObtenerMensajeErrorWeb(ex);
            }
            return(clientResponse);
        }
Exemple #5
0
        public ClientResponse listarPaginado(Pagination paginacion)
        {
            ClientResponse clientResponse = new ClientResponse();

            try
            {
                clientResponse = new AnuncioLogic().listarPaginado(paginacion);
            }
            catch (Exception ex)
            {
                clientResponse = Utilidades.ObtenerMensajeErrorWeb(ex);
            }
            return(clientResponse);
        }
Exemple #6
0
        public ClientResponse ListarAnuncioPaginate(Tbl_anuncio tblAnuncio)
        {
            ClientResponse clientResponse = new ClientResponse();

            try
            {
                clientResponse = new AnuncioLogic().ListarAnuncioPaginate(tblAnuncio);
            }
            catch (Exception ex)
            {
                clientResponse = Utilidades.ObtenerMensajeErrorWeb(ex);
            }
            return(clientResponse);
        }
Exemple #7
0
        public ClientResponse DarBajarAnuncio(Tbl_anuncio oregistro)
        {
            ClientResponse clientResponse = new ClientResponse();

            try
            {
                clientResponse = new AnuncioLogic().DarBajarAnuncio(oregistro);
            }
            catch (Exception ex)
            {
                clientResponse = Utilidades.ObtenerMensajeErrorWeb(ex);
            }
            return(clientResponse);
        }
Exemple #8
0
        public ActionResult Index()
        {
            ClientResponse clientResponse = new ClientResponse();

            try
            {
                clientResponse = new AnuncioLogic().ListarAnuncio();
            }
            catch (Exception ex)
            {
                clientResponse = Utilidades.ObtenerMensajeErrorWeb(ex);
            }
            ViewBag.Message = clientResponse;
            return(View());
        }
        public JsonResult GetAnuncio_x_tokens(string token_anuncio)
        {
            ClientResponse clientResponse = new ClientResponse();

            try
            {
                Tbl_anuncio list = new AnuncioLogic().GetAnucion_x_tokens(token_anuncio);
                clientResponse.DataJson = JsonConvert.SerializeObject(list).ToString();
                clientResponse.Status   = "OK";
            }
            catch (Exception ex)
            {
                clientResponse = Utilidades.ObtenerMensajeErrorWeb(ex);
            }
            return(Json(clientResponse, JsonRequestBehavior.AllowGet));
        }
Exemple #10
0
        public JsonResult GetAnuncio_x_tokens(string token_anuncio)
        {
            ClientResponse clientResponse = new ClientResponse();

            try
            {
                Tbl_anuncio    list = new AnuncioLogic().GetAnucion_x_tokens(token_anuncio);
                ClientResponse clientResponse_cargaInicial = new ParameterLogic().GetCargarControles_Add_Anuncio();
                object         initData = new
                {
                    DetailleAnuncion  = list,
                    ListCargarInicial = clientResponse_cargaInicial
                };
                clientResponse.Status = "OK";
                clientResponse.Data   = initData;
            }
            catch (Exception ex)
            {
                clientResponse = Utilidades.ObtenerMensajeErrorWeb(ex);
            }
            //  return Json(new { Result = "Ocurrio un Error", Status = "ERROR" }, JsonRequestBehavior.AllowGet);
            return(Json(clientResponse, JsonRequestBehavior.AllowGet));
        }