ReturnMessage.cs 584 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace EMIS.ViewModel
  6. {
  7. [Serializable]
  8. public class ReturnMessage
  9. {
  10. public bool IsSuccess { get; set; }
  11. public int ErrorCode { get; set; }
  12. public string Message { get; set; }
  13. public int? Type { get; set; }
  14. }
  15. [Serializable]
  16. public class ReturnMessage<T>
  17. {
  18. public bool IsSuccess { get; set; }
  19. public int ErrorCode { get; set; }
  20. public string Message { get; set; }
  21. public T Data { get; set; }
  22. }
  23. }