DropdownSrcAttribute.cs 336 B

12345678910111213141516
  1. using System;
  2. namespace CZFW.Framework.Attributes
  3. {
  4. public class DropdownSrcAttribute : Attribute
  5. {
  6. public string SrcUrl { get; set; }
  7. public string GetSrcUrl()
  8. {
  9. if (!string.IsNullOrWhiteSpace(SrcUrl))
  10. return SrcUrl;
  11. return null;
  12. }
  13. }
  14. }