public Task <int> SaveSupplyListAsync(SupplyList slist) { if (slist.ID != -1) { return(_database.UpdateAsync(slist)); } else { return(_database.InsertAsync(slist)); } }
public ListPage(SupplyList supplyList) { _listProduct = new ListProduct(); BindingContext = supplyList; InitializeComponent(); }
public ProductSupplyPage(SupplyList supply) { InitializeComponent(); BindingContext = supply; }
public Task <int> DeleteSupplyListAsync(SupplyList slist) { return(_database.DeleteAsync(slist)); }
public void WhenTitleBeScan(SupplyList titleList) { TitleList = titleList; }
public ProductPage(SupplyList slist) { InitializeComponent(); sl = slist; //pt a sti id-ul listei din SupplyList _listProduct = new ListProduct(); }