Answers for "Action Method Parameters"

0

Action Method Parameters

[HttpPost]
public ActionResult Edit(Student std)
{
    // update student to the database
    
    return RedirectToAction("Index");
}

[HttpDelete]
public ActionResult Delete(int id)
{
    // delete student from the database whose id matches with specified id

    return RedirectToAction("Index");
}
Posted by: Guest on October-07-2021

Code answers related to "Action Method Parameters"

Browse Popular Code Answers by Language