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