C# Passing Data To Controller .net core

 function testSave() {

            $.ajax({

                type: 'POST',

                url: "/district/Create",

                data: {Name:"sance"},

                success: function (respon) {

                    alert("ok");

                },

                error: function () { alert("Err TestSave.") }

            });

        }



public async Task<IActionResult> TestSave(CreateDistrictDto dto) {

            return Content("ok");

        }



C# Passing Data To Controller .net core C# Passing Data To Controller .net core Reviewed by Leo on Agustus 08, 2022 Rating: 5

Tidak ada komentar

About me

About Me

My name is Joanne Doe, a lifestyle photographer and blogger currently living in Osaka, Japan. I write my thoughts and travel stories inside this blog.