예제 #1
0
        public ActionResult Add2(MeqaleTagForMeqale mt)
        {
            bool a = MeqaleTagForMeqaleORM.Current.Insert(mt).Data;

            if (a == false)
            {
                return(View(0));
            }
            return(View(1));
        }
예제 #2
0
        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 }));
        }