I want to return last 10 days list using Entity Framework by date. DateSigned
is my date
column. I already tried the code shown below, but this does not return the last 10 days of data, this returns 10 days back data. How can I fix it?
var Chart = dbcontext.CampaignEmails
.Where(x => x.DateSigned > DateTime.Now.AddDays(-10))
.ToList();