File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
MiniExcel.Samples.Blazor/Components/Pages
MiniExcel.Samples.MinimalApis Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3333 <InputText ValueExpression =" @(() => p.Name)" Value =" @p.Name" ValueChanged =" @(n => p.Name = n)" />
3434 </td >
3535 <td >
36- <InputText ValueExpression =" @(() => p.Surname)" Value =" @p.Surname" ValueChanged =" @(s => p.Name = s)" />
36+ <InputText ValueExpression =" @(() => p.Surname)" Value =" @p.Surname" ValueChanged =" @(s => p.Surname = s)" />
3737 </td >
3838 <td >
3939 <InputNumber TValue =" int" min =" 0" ValueExpression =" @(() => p.Age)" Value =" p.Age" ValueChanged =" @(a => p.Age = a)" />
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ internal static RouteGroupBuilder MapExcelApi(this IEndpointRouteBuilder builder
1818 group . MapExportExcel ( ) ;
1919 group . MapApplyExcelTemplate ( ) ;
2020
21- return group ;
21+ return group . DisableAntiforgery ( ) ;
2222 }
2323
2424 private static RouteHandlerBuilder MapExportExcel ( this IEndpointRouteBuilder builder )
@@ -72,7 +72,7 @@ private static RouteHandlerBuilder MapApplyExcelTemplate(this IEndpointRouteBuil
7272
7373 private static RouteHandlerBuilder MapImportExcel ( this IEndpointRouteBuilder builder )
7474 {
75- return builder . MapPost ( "import" , async ( [ FromBody ] IFormFile file ) =>
75+ return builder . MapPost ( "import" , async ( IFormFile file ) =>
7676 {
7777 var stream = new MemoryStream ( ) ;
7878 await file . CopyToAsync ( stream ) ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments