コード例 #1
0
        public IActionResult AddNote(Guid id)
        {
            var model = new NoteFullViewModel
            {
                //StudentId = id
            };

            return(this.View(model));
        }
コード例 #2
0
        public IActionResult AddNote(NoteFullViewModel noteProfileToAdd, int id)
        {
            var noteProfileServiceModelToAdd = new NoteFullServiceModel
            {
                //Title = noteProfileToAdd.Title,
                //Comment = noteProfileToAdd.Comment,
                //DateReceived = noteProfileToAdd.DateReceived,
                //StatusNote = (int)noteProfileToAdd.StatusNote,
            };

            this.noteService.AddNoteToStudentByStudentId(noteProfileServiceModelToAdd);

            return(this.RedirectToAction("NoteApproved", new { id = id }));
        }