コード例 #1
0
        public static Response <ProductoResponse> ListProducto(short Index_Compañia, string filtro)
        {
            try
            {
                Response <ProductoResponse> response;
                List <ProductoEntity>       List;

                List = ProductoData.ListProducto(Index_Compañia, filtro);

                response = new Response <ProductoResponse>
                {
                    EsCorrecto = true,
                    Valor      = new ProductoResponse {
                        List = List
                    },
                    Mensaje = "OK",
                    Estado  = true,
                };

                return(response);
            }
            catch (Exception ex)
            {
                return(new Response <ProductoResponse>(false, null, Functions.MessageError(ex), false));
            }
        }