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.

26 lines
639 B

  1. namespace CounsellorBL.BLStructure
  2. {
  3. public class ErrorPack
  4. {
  5. public ErrorPack()
  6. {
  7. }
  8. public ErrorPack(string i_sErrorCode)
  9. {
  10. ErrorCode = i_sErrorCode;
  11. ErrorMsg = i_sErrorCode;
  12. }
  13. public ErrorPack(string i_sErrorCode, string i_sErrorMsg)
  14. {
  15. ErrorCode = i_sErrorCode;
  16. ErrorMsg = i_sErrorMsg;
  17. }
  18. public string ErrorCode { get; set; }
  19. public string ErrorMsg { get; set; }
  20. public bool IsSucces { get { return string.IsNullOrEmpty(ErrorCode) && string.IsNullOrEmpty(ErrorMsg); } }
  21. }
  22. }