public ActionResult Index() { var model = new LogsIndexViewModel(); model.Entries = _logsRepository.GetAll().Select(entry => BuildLogEntryViewModel(entry)).ToList(); return(View(model)); }
public IHttpActionResult GetAllLogs() { return(Ok(_logsRepository.GetAll())); }