public IActionResult AddNote(Guid id) { var model = new NoteFullViewModel { //StudentId = id }; return(this.View(model)); }
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 })); }