public ActionResult Delete(int id, int entityId, LogicaName logicalName) { notesRep.DeleteMessage(id); notesRep.Save(); return(RedirectToAction("List", new { entityId, logicalName })); }
public IHttpActionResult PostReadAll(int[] msgsArr) { var nRepo = new NotesMessagesRepo(); nRepo.SetRead(base.CurrUserId, msgsArr); nRepo.Save(); return(Ok()); }