Пример #1
0
        public IActionResult Get(long accountid, long id)
        {
            var model = _repo.GetEntryById(accountid, id);

            if (model != null)
            {
                var modelToList = new List <Entry>();
                modelToList.Add(model);
                var entryVM = _vmFactory.CreateEntryVM(modelToList, Url).FirstOrDefault();
                return(Ok(model));
            }
            else
            {
                return(NotFound());
            }
        }