Exemplo n.º 1
0
        public ActionResult addNote(string text, int elementId)
        {
            RequestMgr requestMgr = new RequestMgr(ConsoleFactory.getRequestSvc());

            Note note = new Note();
            note.UpdatedBy = (IUser)Session["User"];
            note.Text = text;
            requestMgr.saveNote(note, elementId);
            IList<Note> notes = requestMgr.getElement(elementId).Note;

            return PartialView("~/Views/Console/Partial/_NoteList.ascx", notes);
        }