More additions, lucky card based on day, redo of migrations because i messed up
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using TOOHUCardAPI.Data.Models;
|
||||
@@ -23,5 +24,10 @@ namespace TOOHUCardAPI.Data.Repositories
|
||||
|
||||
return card;
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<Card>> GetAllCards()
|
||||
{
|
||||
return await _context.Cards.ToListAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user