You are likely looking for one of these two examples (using hours):
var dateTimeMinusOneHour = DateTime.Now.Subtract(TimeSpan.FromHours(1));
var dateTimeMinusOneHour = DateTime.Now.AddHours(-1) »
C# has great built-in support for making HTTP requests using the HttpClient. Using this client you can Put, Post, Get, Delete and much more using your »
Dapper is a micro ORM or a simple object mapper and it integrates smoothly with C# and its SqlConnection. The same applies to Dapper and transactions »
Using the HttpRequestMessage together with the HttpClient you can easily send a HTTP Delete request in C#. Below we have a delete endpoint on https://localhost: »
Like with HttpGet HttpPut or HttpPost attributes there is a respective attribute for the HTTP Delete Method - HttpDelete. You can add this attribute to get »