Adding Create ActionResult

The method is same with our project previously.

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

[HttpPost]
public ActionResult Create(SongModel model)
{
    try
    {
        ...
        ...
        ...

        return RedirectToAction("Index");
    }
    catch
    {
        return View(model);
    }
}

results matching ""

    No results matching ""