I'm very new to lambda expressions and want to know how to get all the dates which are between x date and y date. So far I have written it to get all of the data based on the id of an object but now I need to write code to get the data based on id, start date and end date.
Here is what I have so far:
data = ClientsRepo.GetAllClients().DistinctBy(x => x.ClientID);
my start date and end date is in my razor page which is defined here:
@code{
DateTime? startDateInit;
DateTime? endDateInit;
protected override async Task OnInitializedAsync()
{
startDateInit = DateTime.Now;
endDateInit = DateTime.Now.AddDays(10);
}
}