コード例 #1
0
 public ActionResult Delete(string id, Brewery brewery)
 {
     BreweryRepository.Delete(id);
     return RedirectToAction("Index");
 }
コード例 #2
0
 public ActionResult Edit(string id, Brewery brewery)
 {
     BreweryRepository.Update(brewery);
     return RedirectToAction("Index");
 }
コード例 #3
0
 public ActionResult Create(Brewery brewery)
 {
     BreweryRepository.Create(brewery);
     return RedirectToAction("Index");
 }