Exemplo n.º 1
0
        private void btnDelete_Click(object sender, RoutedEventArgs e)
        {
            Tag tags = ((FrameworkElement)sender).DataContext as Tag;

            if (MessageBox.Show("Are you sure you want to delete " + tags.Title + "?",
                                "Are you sure?", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
            {
                var op = TagBLL.Delete(tags.Title);

                if (op.Code != "200")
                {
                    MessageBox.Show("Error : " + op.Message);
                }
                else
                {
                    MessageBox.Show("Tag is successfully deleted from table");
                    showData();
                }
            }
            ;
        }
Exemplo n.º 2
0
 public IHttpActionResult Delete(int TagID)
 {
     _TagService.Delete(TagID, User.Identity.GetUserId());
     return(Ok());
 }