Esempio n. 1
0
 protected void DetailsView1_ItemCommand(object sender, DetailsViewCommandEventArgs e)
 {
     if (e.CommandName == "blockView")
     {
         int userId = Convert.ToInt32(e.CommandArgument);
         var data   = _review.GetallReview(userId);
         foreach (var item in data)
         {
             _review.UpdateBlock("block", item.ReviewId);
         }
     }
 }