1
This commit is contained in:
parent
ac7f8802ba
commit
204d04eb22
@ -122,9 +122,10 @@ namespace MDM.Controllers.Material
|
|||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
public IActionResult ImportTemplateExcel()
|
public IActionResult ImportTemplateExcel()
|
||||||
{
|
{
|
||||||
string path= "./Assets/ImportTemplate";
|
IWebHostEnvironment webHostEnvironment = (IWebHostEnvironment)App.ServiceProvider.GetService(typeof(IWebHostEnvironment));
|
||||||
|
string path= "Assets/ImportTemplate";
|
||||||
string sFileName = $"MaterialMODEL.xlsx";
|
string sFileName = $"MaterialMODEL.xlsx";
|
||||||
string fullPath = Path.Combine(path, sFileName);
|
string fullPath = Path.Combine(webHostEnvironment.ContentRootPath,path, sFileName);
|
||||||
(string, string) result = (sFileName,fullPath);
|
(string, string) result = (sFileName,fullPath);
|
||||||
return ExportExcel(result.Item2, result.Item1);
|
return ExportExcel(result.Item2, result.Item1);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user