Пример #1
0
        public ActionResult Index()
        {
            var model = new LogsIndexViewModel();

            model.Entries = _logsRepository.GetAll().Select(entry => BuildLogEntryViewModel(entry)).ToList();

            return(View(model));
        }
Пример #2
0
 public IHttpActionResult GetAllLogs()
 {
     return(Ok(_logsRepository.GetAll()));
 }