Esempio n. 1
0
 private void InvoicesCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     if (e.Action == NotifyCollectionChangedAction.Add)
     {
         AddInvoice?.Invoke(this, new EventArgs());
     }
     else if (e.Action == NotifyCollectionChangedAction.Remove)
     {
         DeleteInvoice?.Invoke(this, new EventArgs());
     }
 }
Esempio n. 2
0
        public ActionResult _DeleteInvoice(DeleteInvoice deleteInvoice)
        {
            deleteInvoice.ExecuteNonQuery();

            return(Json(new { Result = "Success", Url = "" }));
        }