diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/persistence/CSHTML.cs b/ej2-asp-core-mvc/code-snippet/dashboard-layout/persistence/CSHTML.cs new file mode 100644 index 0000000000..7baf440c82 --- /dev/null +++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/persistence/CSHTML.cs @@ -0,0 +1,5 @@ + public class stateSpacingModel + { + public double[]? cellSpacing { get; set; } + } + \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/persistence/HomeController.cs b/ej2-asp-core-mvc/code-snippet/dashboard-layout/persistence/HomeController.cs new file mode 100644 index 0000000000..3d3ee27584 --- /dev/null +++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/persistence/HomeController.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using Microsoft.AspNetCore.Mvc; + +namespace WebApplication.Controllers +{ + public class HomeController : Controller + { + public class spacingModel + { + public double[] cellSpacing { get; set; } + } + public ActionResult Index() + { + spacingModel modelValue = new spacingModel(); + modelValue.cellSpacing = new double[] { 20, 20 }; + return View(modelValue); + } + } +} \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/dashboard-layout/persistence/razor b/ej2-asp-core-mvc/code-snippet/dashboard-layout/persistence/razor new file mode 100644 index 0000000000..6a743fe0df --- /dev/null +++ b/ej2-asp-core-mvc/code-snippet/dashboard-layout/persistence/razor @@ -0,0 +1,34 @@ +@model WebApplication.Controllers.HomeController.spacingModel + + +