Beispiel #1
0
 //GET DETAILS
 public ActionResult Details(int id)
 {
     return(View(ItemRepo.GetById(id)));
 }
Beispiel #2
0
 //EDIT GET
 public ActionResult Edit(int id)
 {
     return(View("_Edit", ItemRepo.GetById(id)));
 }
Beispiel #3
0
 //DELETE GET
 public ActionResult Delete(int id)
 {
     return(View("_Delete", ItemRepo.GetById(id)));
 }
Beispiel #4
0
 // GET api/<controller>/5
 public ItemViewModel Get(int id)
 {
     return(ItemRepo.GetById(id));
 }