ErrorResponse.cs 705 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Web;
  6. namespace AipGateway.Web.Models
  7. {
  8. public class ErrorResponse
  9. {
  10. [Display(Name = "Date Time")]
  11. [DataType(DataType.DateTime)]
  12. public DateTime Timestamp { get; set; } = DateTime.Now;
  13. public int Status { get; set; } = 0;
  14. public string Title { get; set; } = string.Empty;
  15. public string Message { get; set; } = string.Empty;
  16. public string Path { get; set; } = string.Empty;
  17. public List<string> Errors { get; set; } = new List<string>();
  18. public object Clone() => this.MemberwiseClone();
  19. }
  20. }