private Edit ( int module_id ) : System.Web.Mvc.ActionResult | ||
module_id | int | |
리턴 | System.Web.Mvc.ActionResult |
public ActionResult Edit(int module_id)
{
var module = ctx.modules.Where(x => x.id == module_id).FirstOrDefault();
if (module != null)
{
return View(module);
}
throw new ArgumentException("Module not found!");
}