public IActionResult Get(long accountid) { var entries = _repo.GetEntriesForAccount(accountid); if (entries != null) { var entriesVM = _vmFactory.CreateEntryVM(entries.ToList(), Url); return(Ok(entriesVM)); } return(NotFound()); }
public IActionResult Get(long accountid) { var entries = _repo.GetEntriesForAccount(accountid); if (entries != null) { var entriesVM = _vmFactory.CreateEntryVM(entries.ToList(), Url); return(Ok(entriesVM)); } return(NotFound()); }