// GET: WriterPanelMessage public ActionResult Inbox(string k = "") { string p = (string)Session["WriterMail"]; var writeridinfo = vm.GetByWriterId(p); var messagelist = mm.GetListInbox(p, k); return(View(messagelist)); }
public ActionResult WriterProfile(int id = 0) { string p = (string)Session["WriterMail"]; id = wm.GetByWriterId(p); var writervalue = wm.GetByID(id); return(View(writervalue)); }
// GET: WriterPanelContent public ActionResult MyContent() { //int id =2; string p = (string)Session["WriterMail"]; var Writeridinfo = vm.GetByWriterId(p); var contentvalues = cm.GetListByWriter(Writeridinfo); return(View(contentvalues)); }
public ActionResult WriterProfile(int id = 0) { string p = (string)Session["WriterMail"]; id = c.Writers.Where(x => x.WriterMail == p).Select(y => y.WriterId).FirstOrDefault(); var writerValue = wm.GetByWriterId(id); return(View(writerValue)); }
public PartialViewResult MessageListMenu() { string p = (string)Session["WriterMail"]; //string p = "*****@*****.**"; var writeridinfo = vm.GetByWriterId(p); ViewBag.ContactCount = cm.GetList().Count; ViewBag.ContactReadCount = cm.GetList().Where(x => x.ContactReadStatus == true).Count(); ViewBag.ContactNotReadCount = cm.GetList().Where(x => x.ContactReadStatus == false).Count(); ViewBag.MessageInboxCount = mm.GetListInbox(p, "").Count; ViewBag.MessageReadCount = mm.GetListInbox(p, "").Where(x => x.MessageReadStatus == true).Count(); ViewBag.MessageNotReadCount = mm.GetListInbox(p, "").Where(x => x.MessageReadStatus == false).Count(); ViewBag.MessageSendboxCount = mm.GetListSendbox(p, "").Count; ViewBag.MessageDraftboxCount = mm.GetListDraftbox(p, "").Count; return(PartialView()); }
public ActionResult EditWriter(int id) { var writervalue = wm.GetByWriterId(id); return(View(writervalue)); }