newsWebLotteryRequest.cs 551 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using Newtonsoft.Json;
  6. namespace ResfullApi.Models
  7. {
  8. [Serializable]
  9. //{"fromDate":"01/02/2020","toDate":"20/02/2020"}
  10. public class newsWebLotteryRequest
  11. {
  12. [JsonProperty("fromDate")]
  13. public string fromDate { get; set; }
  14. [JsonProperty("toDate")]
  15. public string toDate { get; set; }
  16. public override string ToString()
  17. {
  18. return JsonConvert.SerializeObject(this);
  19. }
  20. }
  21. }