Rebrand context.

This commit is contained in:
2020-02-10 02:47:39 +00:00
parent c2a5a13b28
commit 90e7d75e7e
101 changed files with 197 additions and 197 deletions

View File

@@ -14,9 +14,9 @@ namespace Marechai.Areas.Admin.Controllers
[Authorize]
public class SoundByOwnedMachineController : Controller
{
readonly cicmContext _context;
readonly MarechaiContext _context;
public SoundByOwnedMachineController(cicmContext context)
public SoundByOwnedMachineController(MarechaiContext context)
{
_context = context;
}
@@ -24,9 +24,9 @@ namespace Marechai.Areas.Admin.Controllers
// GET: SoundByOwnedMachine
public async Task<IActionResult> Index()
{
IIncludableQueryable<SoundByOwnedMachine, SoundSynth> cicmContext =
IIncludableQueryable<SoundByOwnedMachine, SoundSynth> marechaiContext =
_context.SoundByOwnedMachine.Include(s => s.OwnedMachine).Include(s => s.SoundSynth);
return View(await cicmContext.OrderBy(s => s.OwnedMachine.Machine.Company.Name)
return View(await marechaiContext.OrderBy(s => s.OwnedMachine.Machine.Company.Name)
.ThenBy(s => s.OwnedMachine.Machine.Name)
.ThenBy(s => s.OwnedMachine.User.UserName).ThenBy(s => s.SoundSynth.Name)
.Select(s => new SoundByMachineViewModel