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
///
/// The count of imported data objects
///
public int ImportCount { get; set; }
///
/// The import exception
///
public Exception Error { get; set; }
#endregion
#region Ctor
///
/// Initializes a new instance of the ImportResultModel class
///
public ImportResultModel() { }
///
/// Initializes a new instance of the ImportResultModel class
///
/// The amount of imported data rows.
public ImportResultModel(int importCount)
{
ImportCount = importCount;
}
///
/// Initializes a new instance of the ImportResultModel class
///
/// The exception thrown on the import.
public ImportResultModel(Exception error)
{
Error = error;
}
#endregion
}
}