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