Code re-style.

This commit is contained in:
2020-08-05 21:00:35 +01:00
parent 6f728047c3
commit 569eaa09f6
142 changed files with 5327 additions and 2877 deletions

View File

@@ -41,13 +41,15 @@ namespace Marechai.Services
public async Task<List<InstructionSet>> GetAsync() =>
await _context.InstructionSets.OrderBy(e => e.Name).Select(e => new InstructionSet
{
Name = e.Name, Id = e.Id
Name = e.Name,
Id = e.Id
}).ToListAsync();
public async Task<InstructionSet> GetAsync(int id) =>
await _context.InstructionSets.Where(e => e.Id == id).Select(e => new InstructionSet
{
Name = e.Name, Id = e.Id
Name = e.Name,
Id = e.Id
}).FirstOrDefaultAsync();
public async Task UpdateAsync(InstructionSet viewModel, string userId)