public ActionResult Outbox() { DomainModel.BusinessLayer.msgNotification msg = new DomainModel.BusinessLayer.msgNotification(); var qryResults = msg.getOutbox(UserDetails.Current.SchoolId, UserDetails.Current.Iduser); return(View(qryResults.ToList())); }
public ActionResult DeleteMsg(string strIds, int ioBox) { string strForm = ioBox.ToString(); DomainModel.BusinessLayer.msgNotification msg = new DomainModel.BusinessLayer.msgNotification(); Boolean blnflg = msg.deleteMsgs(strIds, ioBox, UserDetails.Current.SchoolId, UserDetails.Current.Iduser); return(Content(strForm)); }
public ActionResult ReplyMsg(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } DomainModel.BusinessLayer.msgNotification msg = new DomainModel.BusinessLayer.msgNotification(); var qryResults = msg.getMsgDetails((int)id, UserDetails.Current.Iduser); return(View(qryResults)); }
public ActionResult Details(int?id, int iobox) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } DomainModel.BusinessLayer.msgNotification msg = new DomainModel.BusinessLayer.msgNotification(); var qryMsg = msg.getMsgDetails((int)id, UserDetails.Current.Iduser); ViewBag.ioBoxId = iobox; return(View(qryMsg)); }
public ActionResult GetToList() { string sample = string.Empty; string lookupterm = string.Empty; lookupterm = Request.QueryString["q"]; DomainModel.BusinessLayer.msgNotification msg = new DomainModel.BusinessLayer.msgNotification(); var qryResults = msg.getToList(lookupterm, UserDetails.Current.SchoolId); //IEnumerable<MYTagInput> results = tg.Where(x => x.name.Contains(lookupterm)); sample = JSONHelper.ToJSON(qryResults); return(Content(sample)); }
public ActionResult ReplyMsg([Bind(Include = "Id,To,Body,subject")] DomainModel.BusinessLayer.msgNotification ntf) { try { if (ModelState.IsValid) { DomainModel.BusinessLayer.msgNotification msg = new DomainModel.BusinessLayer.msgNotification(); Boolean blnFlg = msg.saveNotification(ntf, UserDetails.Current.Iduser, UserDetails.Current.SchoolId); if (blnFlg == true) { return(RedirectToAction("Inbox")); } else { return(View()); } } } catch { return(View()); } return(View()); }