示例#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()));
 }