Example #1
0
        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()));
        }
Example #2
0
        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));
        }
Example #3
0
        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));
        }
Example #4
0
        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));
        }
Example #5
0
        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));
        }
Example #6
0
 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());
 }