You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
876 B

  1. using System.ComponentModel.DataAnnotations;
  2. namespace GMENepal.Model
  3. {
  4. public class GMEGetCalculationRequest : GMECommonRequest
  5. {
  6. [MaxLength(50)]
  7. public string ReceivingAgentId { get; set; }
  8. [MaxLength(50)]
  9. [Required]
  10. public string RemitAmount { get; set; }
  11. private string _PaymentMethod;
  12. [Required]
  13. public string PaymentMethod
  14. {
  15. get
  16. {
  17. if (_PaymentMethod.ToLower().Equals("cash payment"))
  18. {
  19. return "C";
  20. }
  21. return "B";
  22. }
  23. set { _PaymentMethod = value; }
  24. }
  25. [MaxLength(50)]
  26. [Required]
  27. public string ReceivingCountry { get; set; }
  28. [MaxLength(1)]
  29. [Required]
  30. public string CalculateBy { get; set; }
  31. }
  32. }