/// <summary> /// this function will update the given seller from the context based on its fiscal code value /// </summary> /// <param name="seller">the given seller</param> public void UpdateLocalSellerByFiscalCode(ObjectStructures.Invoice.Seller seller) { seller.ConsumeDatabaseObject(base.Furnizori.Where(element => element.CodFiscal == seller.FiscalCode).ToList().FirstOrDefault()); }
/// <summary> /// this function will update the given seller from the context based on its id value /// </summary> /// <param name="seller">the given seller</param> public void UpdateLocalSellerByID(ObjectStructures.Invoice.Seller seller) { seller.ConsumeDatabaseObject(base.Furnizori.Find(seller.ID)); }