mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Code re-style.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user