ImportResultModel.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. namespace GreenTree.Strohrmann.ERP.Web.Models.Import
  6. {
  7. public class ImportResultModel
  8. {
  9. #region Properties
  10. /// <summary>
  11. /// The count of imported data objects
  12. /// </summary>
  13. public int ImportCount { get; set; }
  14. /// <summary>
  15. /// The import exception
  16. /// </summary>
  17. public Exception Error { get; set; }
  18. #endregion
  19. #region Ctor
  20. /// <summary>
  21. /// Initializes a new instance of the ImportResultModel class
  22. /// </summary>
  23. public ImportResultModel() { }
  24. /// <summary>
  25. /// Initializes a new instance of the ImportResultModel class
  26. /// </summary>
  27. /// <param name="importCount">The amount of imported data rows.</param>
  28. public ImportResultModel(int importCount)
  29. {
  30. ImportCount = importCount;
  31. }
  32. /// <summary>
  33. /// Initializes a new instance of the ImportResultModel class
  34. /// </summary>
  35. /// <param name="error">The exception thrown on the import.</param>
  36. public ImportResultModel(Exception error)
  37. {
  38. Error = error;
  39. }
  40. #endregion
  41. }
  42. }