/// <summary> /// Gets the list of all backups. /// </summary> /// <returns>List of backups</returns> public IEnumerable <ScheduledBackup> Get() { return(_repository.GetAll()); }
/// <summary> /// Indexes this instance. /// </summary> /// <returns></returns> public ActionResult Index() { var model = _repository.GetAll().Select(b => (BackupInfoViewModel)b).ToList(); return View(model); }