Пример #1
0
        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());
        }