Example #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());
     }
 }
        public ActionResult _DeleteInvoice(DeleteInvoice deleteInvoice)
        {
            deleteInvoice.ExecuteNonQuery();

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