Files
Aaru.Server/DiscImageChef.Server/Areas/Admin/Controllers/FilesystemsController.cs

20 lines
636 B
C#
Raw Normal View History

2019-11-10 23:00:34 +00:00
using System.Linq;
2019-11-07 22:43:37 +00:00
using System.Threading.Tasks;
using DiscImageChef.Server.Models;
using Microsoft.AspNetCore.Authorization;
2019-11-07 22:43:37 +00:00
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace DiscImageChef.Server.Areas.Admin.Controllers
{
2019-11-08 20:30:13 +00:00
[Area("Admin"), Authorize]
2019-11-07 22:43:37 +00:00
public class FilesystemsController : Controller
{
readonly DicServerContext _context;
public FilesystemsController(DicServerContext context) => _context = context;
// GET: Admin/Filesystems
2019-11-10 23:00:34 +00:00
public async Task<IActionResult> Index() => View(await _context.Filesystems.OrderBy(f => f.Name).ToListAsync());
2019-11-07 22:43:37 +00:00
}
}