Exemplo n.º 1
0
        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 }));
        }
Exemplo n.º 2
0
 public NoteModel GetNote(int id) => _notes.Get(id);