Пример #1
0
        public async Task <IActionResult> GetDetailsView(Guid id)
        {
            try
            {
                var log = _repository.GetOne(id);

                string name = _repository.GetServiceName(log);

                var logView = new AuditLogDetailsViewModel();
                logView             = logView.Map(log);
                logView.ServiceName = name;

                PaginatedList <AuditLogDetailsViewModel> logList = new PaginatedList <AuditLogDetailsViewModel>();
                logList.Add(logView);

                return(Ok(logList));
            }
            catch (Exception ex)
            {
                return(ex.GetActionResult());
            }
        }