Le sigh - needed to make a new ImportLogViewModel - can't be shared because of DenyPreviousMonth
This commit is contained in:
@@ -268,7 +268,7 @@ namespace MileageTraker.Web.Controllers
|
||||
var path = Path.Combine(Server.MapPath("~/App_Data/uploads"), fileName);
|
||||
viewModel.File.SaveAs(path);
|
||||
|
||||
IEnumerable<LogImportViewModel> logImports;
|
||||
IEnumerable<ImportLogViewModel> logImports;
|
||||
try
|
||||
{
|
||||
logImports = LogImporter.Import(path);
|
||||
@@ -294,7 +294,7 @@ namespace MileageTraker.Web.Controllers
|
||||
|
||||
[HttpPost]
|
||||
[ActionLog]
|
||||
public ActionResult ImportCreate(LogImportViewModel viewModel, string userFullName)
|
||||
public ActionResult ImportCreate(ImportLogViewModel viewModel, string userFullName)
|
||||
{
|
||||
var buttonAttributes = new Dictionary<string, object> { { "class", "btn btn-mini" }, { "target", "_blank" } };
|
||||
|
||||
@@ -405,7 +405,7 @@ namespace MileageTraker.Web.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
private string GetFixLink(LogImportViewModel viewModel)
|
||||
private string GetFixLink(ImportLogViewModel viewModel)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -420,7 +420,7 @@ namespace MileageTraker.Web.Controllers
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult ImportFix(LogImportViewModel viewModel)
|
||||
public ActionResult ImportFix(ImportLogViewModel viewModel)
|
||||
{
|
||||
var logViewModel = viewModel.GetLogViewModel();
|
||||
logViewModel.Purpose.Available = GetPurposeTypesSelectList();
|
||||
|
||||
Reference in New Issue
Block a user