Пример #1
0
 public ActionResult taglist()
 {
     if (!isLogin()) return RedirectToAction("login", "auth");
     int uid = getCurrentUser().Id;
     Provider db = new Provider();
     TagListViewModel obj = new TagListViewModel()
     {
         list=db.getTagsByUser(uid)
     };
     return View(obj);
 }
Пример #2
0
        public ActionResult editTagList()
        {
            if (!isLogin()) return RedirectToAction("login", "auth");
            User user = getCurrentUser();

            Provider db = new Provider();
            List<Tag> tags = db.getTagsByUser(user.Id);
            TagListViewModel obj = new TagListViewModel()
            {
                list = tags
            };

            return View(obj);
        }