public ActionResult Add2(MeqaleTagForMeqale mt) { bool a = MeqaleTagForMeqaleORM.Current.Insert(mt).Data; if (a == false) { return(View(0)); } return(View(1)); }
public ActionResult Sil2(int MeqaleID, int TagID) { MeqaleTagForMeqale m = MeqaleTagForMeqaleORM.Current.Select().Data.FirstOrDefault(x => x.MeqaleID == MeqaleID && x.TagID == TagID); bool a = MeqaleTagForMeqaleORM.Current.Delete(m).Data; if (a == false) { return(View(0)); } return(RedirectToAction("Sil", "MeqaleTag", new { id = MeqaleID })); }