28 lines
593 B
C#
28 lines
593 B
C#
namespace MileageTraker.Web.ViewModels.FuelLog
|
|
{
|
|
public class MatchLinkViewModel
|
|
{
|
|
public int FuelLogId { get; set; }
|
|
public int? LogId { get; set; }
|
|
|
|
public MatchLinkViewModel(Models.FuelLog fuelLog)
|
|
{
|
|
FuelLogId = fuelLog.FuelLogId;
|
|
if (fuelLog.Log != null)
|
|
LogId = fuelLog.Log.LogId;
|
|
}
|
|
|
|
public MatchLinkViewModel(int fuelLogId, int? logId)
|
|
{
|
|
FuelLogId = fuelLogId;
|
|
LogId = logId;
|
|
}
|
|
|
|
public MatchLinkViewModel(ImportFuelLogViewModel viewModel)
|
|
{
|
|
FuelLogId = viewModel.FuelLogId;
|
|
if (viewModel.LogId != null)
|
|
LogId = viewModel.LogId;
|
|
}
|
|
}
|
|
} |