public Success <Producto> InsertarProducto(Producto producto) { ICatalogo <Producto> insertarProducto = new ProductoBI(); Success <Producto> success = new Success <Producto>(); try { return(insertarProducto.Insert(producto)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public List <Producto> ObtenerProducto() { ICatalogo <Producto> producto = new ProductoBI(); Success <Producto> success = new Success <Producto>(); try { return(producto.Get().ResponseDataEnumerable.ToList()); } catch (Exception ex) { throw new Exception(ex.Message); } }