// GET: WriterPanelContent public ActionResult MyContents(string p) { int id = 0; p = (string)Session["WriterMail"]; id = _wm.GetWriterByUsername(p).WriterID; ViewBag.Writer = _wm.GetWriterByUsername(p); return(View(_cm.GetContentsByWriterID(id))); }
public ActionResult MyHeading(string p) { int id = 0; if (string.IsNullOrEmpty((string)Session["WriterMail"])) { return(RedirectToAction("WriterLogin", "Login")); } else { p = (string)Session["WriterMail"]; id = _wm.GetWriterByUsername(p).WriterID; ViewBag.Writer = _wm.GetWriterByUsername(p); return(View(_hm.GetListByWriter(id))); } }
// GET: WriterSkills public ActionResult Index(string p) { int id = 0; if (string.IsNullOrEmpty((string)Session["WriterMail"])) { return(RedirectToAction("WriterLogin", "Login")); } else { p = (string)Session["WriterMail"]; id = _wm.GetWriterByUsername(p).WriterID; ViewBag.SkillList = _wsm.GetWriterSkills(id); return(View(_wm.GetByID(id))); } }