public ActionResult GetCustodianAndNotesDetails(int accountNumber, int assignmentId) { var custodianDetails = _custodian.Get(accountNumber); List <string> sb = new List <string>(); if (assignmentId != null && assignmentId > 0) { var notes = _notes.Get(assignmentId); if (notes.Any()) { foreach (var note in notes) { sb.Add(note.NOTE); } } } return(Json(new { custodianDetails = custodianDetails, notes = sb })); }
public NoteModel GetNote(int id) => _notes.Get(id);