Commit 30505079 authored by Clint.Network's avatar Clint.Network

Order by date

parent d42828d2
...@@ -16,7 +16,7 @@ namespace Stratis.Guru.Models ...@@ -16,7 +16,7 @@ namespace Stratis.Guru.Models
_draws = draws; _draws = draws;
} }
public List<Participation> GetPlayers(string draw) => _databaseContext.Participations.Find(x => x.Draw.Equals(draw)).ToList(); public List<Participation> GetPlayers(string draw) => _databaseContext.Participations.Find(x => x.Draw.Equals(draw)).ToList().OrderByDescending(x => x.CreationDate).ToList();
public void StoreParticipation(string ticket, string nickname, string address, double amount) public void StoreParticipation(string ticket, string nickname, string address, double amount)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment