CreateInstanceInDto.cs 765 B

1234567891011121314151617181920212223
  1. using SnapshotWinFormsApp.Repository;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace SnapshotWinFormsApp.Application.Dtos;
  8. public class CreateInstanceInDto
  9. {
  10. public CreateInstanceInDto(DbSqlServer dbSqlServer, string key, DateTime startTime, DateTime endTime)
  11. {
  12. DbSqlServer = dbSqlServer;
  13. Key = key;
  14. StartTime = new DateTime(startTime.Year, startTime.Month, startTime.Day, 0, 0, 0);
  15. EndTime = new DateTime(endTime.Year, endTime.Month, endTime.Day, 23, 59, 59);
  16. }
  17. public DbSqlServer DbSqlServer { get; set; }
  18. public string Key { get; set; }
  19. public DateTime StartTime { get; set; }
  20. public DateTime EndTime { get; set; }
  21. }