JSON terug sturen vanuit controller

public async Task<ActionResult> Controller()
{
  try
    {
      doe vanalles
      return Json(new {status = "gelukt", boodschap = "alles is goed verlopen"})
    }
  catch(exception ex)
    {
       return Json(new {status = "mislukt", boodschap = ex.message})
     }
}
Categories:

Related Article