ClassAgentPartial.cs 540 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Demo
  7. {
  8. public partial class Agent
  9. {
  10. public static string Image
  11. {
  12. get
  13. {
  14. Agent logo = new Agent();
  15. if(logo.Logo != null)
  16. {
  17. return logo.Logo;
  18. }
  19. else
  20. {
  21. return "/Imgs/picture.png";
  22. }
  23. }
  24. }
  25. }
  26. }