I\'m doing DateTime comparison but I don\'t want to do comparison at second, millisecond and ticks level. What\'s the most elegant way?
If I simply compare the DateT
Very simple solution from my own code:
TimeSpan timeDifference = presentLastSavedDate.Subtract(previousLastSavedDate); if (timeDifference.Seconds > 0) { return Content(HttpStatusCode.Conflict, ALREADY_CHANGED_MSG); }