22 lines
485 B
C#
22 lines
485 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(ImportFuelLogViewModel viewModel)
|
|
{
|
|
FuelLogId = viewModel.FuelLogId;
|
|
if (viewModel.LogId != null)
|
|
LogId = viewModel.LogId;
|
|
}
|
|
}
|
|
} |