Example #1
0
        public void delete_usertags(int id)
        {
            usertags tag = ActiveRecordBase <usertags> .Find(id);

            ActiveRecordMediator <usertags> .Delete(tag);

            RedirectToReferrer();
        }
Example #2
0
        public void massDeleteUserTags(int[] ids)
        {
            foreach (int id in ids)
            {
                usertags tag = ActiveRecordBase <usertags> .Find(id);

                ActiveRecordMediator <usertags> .Delete(tag);
            }
            RedirectToReferrer();
        }
Example #3
0
 public void update_usertags(int id, [DataBind("tag")] usertags tag)
 {
     try
     {
         //ActiveRecordMediator<tags>.Save(tag);
         ActiveRecordMediator <usertags> .Save(tag);
     }
     catch (Exception ex)
     {
         Flash["error"] = ex.Message;
         Flash["tag"]   = tag;
     }
     RedirectToAction("index");
 }