示例#1
0
 public ActionResult Delete(int id)
 {
     lampRepo.Delete(id);
     return(RedirectToAction("Index"));
 }
示例#2
0
 public Lamp DeleteLamp(int id)
 {
     return(_lampRepo.Delete(id));
 }