Пример #1
0
        public ActionResult TiendaLightByPk([FromBody] TiendasModel tiendaM)
        {
            int    result = 0;
            string msj    = "¡Error al obtener tienda intente más tarde!";

            try
            {
                tiendaM.getTiendasLightByPk();
                result = 1;
                msj    = "¡Tienda obtenida!";
            }
            catch
            {
                result = 0;
                msj    = "¡Error al obtener tienda intente más tarde!";
            }

            return(Ok(new
            {
                resultado = result,
                mensaje = msj,
                tienda = tiendaM,
            }));
        }