Beispiel #1
0
    public static string DeleteProduct(int id)
    {
        clsLst lst = new clsLst();
        lst.iProductId = id;
        string result = lst.InsertUpdateDeleteProducts(lst.TYPE_DELETE);

        return result;
    }
Beispiel #2
0
    public static string CrudProducts(int id, string description, string reference, string barcode, decimal price, int category, int supplier, string userName, int type)
    {
        clsLst lst = new clsLst();
        lst.iProductId = id;
        lst.sDescription = description;
        lst.sReference = reference;
        lst.sBarcode = barcode;
        lst.dPrice = price;
        lst.iCategoryId = category;
        lst.iSupplierId = supplier;
        lst.sUser = userName;

        string result = lst.InsertUpdateDeleteProducts(type);

        return result;
    }