Skip to content
Snippets Groups Projects
Commit 3893caa0 authored by Radek Puš's avatar Radek Puš
Browse files

loading only expenses in hisotry controller

parent 386b9885
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,8 @@ namespace Core.Controllers
 
var transactions = Context.Files
.Where(f => f.UserID == userID)
.SelectMany(f => f.Transactions);
.SelectMany(f => f.Transactions)
.Where(t => t.Amount < -2);
 
if (!transactions.Any())
return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment