| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- namespace GreenTree.Strohrmann.ERP.Web.Models.Import
- {
- public class ImportResultModel
- {
- #region Properties
- /// <summary>
- /// The count of imported data objects
- /// </summary>
- public int ImportCount { get; set; }
- /// <summary>
- /// The import exception
- /// </summary>
- public Exception Error { get; set; }
- #endregion
- #region Ctor
- /// <summary>
- /// Initializes a new instance of the ImportResultModel class
- /// </summary>
- public ImportResultModel() { }
- /// <summary>
- /// Initializes a new instance of the ImportResultModel class
- /// </summary>
- /// <param name="importCount">The amount of imported data rows.</param>
- public ImportResultModel(int importCount)
- {
- ImportCount = importCount;
- }
- /// <summary>
- /// Initializes a new instance of the ImportResultModel class
- /// </summary>
- /// <param name="error">The exception thrown on the import.</param>
- public ImportResultModel(Exception error)
- {
- Error = error;
- }
- #endregion
- }
- }
|