Example #1
0
        public ActionResult Delete(int id, int entityId, LogicaName logicalName)
        {
            notesRep.DeleteMessage(id);
            notesRep.Save();

            return(RedirectToAction("List", new { entityId, logicalName }));
        }
Example #2
0
        public IHttpActionResult PostReadAll(int[] msgsArr)
        {
            var nRepo = new NotesMessagesRepo();

            nRepo.SetRead(base.CurrUserId, msgsArr);
            nRepo.Save();

            return(Ok());
        }