Answers for "how to insert <input> datatype <td> in asp.net core table"

C#
0

how to insert <input> datatype <td> in asp.net core table

public ActionResult CreateMultiple()
{
    return View();
}

public JsonResult SaveData(string getepassdata)//WebMethod to Save the data  
{
    try
    {
        var serializeData = JsonConvert.DeserializeObject<List<GatePass>>(getepassdata);

        foreach (var data in serializeData)
        {
            db.GatePasses.Add(data);
        }

        db.SaveChanges();
    }
    catch (Exception)
    {
        return Json("fail");
    }

    return Json("success");
}
Posted by: Guest on May-25-2020

Code answers related to "how to insert <input> datatype <td> in asp.net core table"

C# Answers by Framework

Browse Popular Code Answers by Language