// GET: Chat/Delete/5 public ActionResult Delete(int id) { FakeDb fakeDb = FakeDb.Instance; ChatMetier.Entities.Chat chat = fakeDb.Get(id); return(View(chat)); }
// GET: Chat/Edit/5 public ActionResult Edit(int id) { FakeDb fakeDb = FakeDb.Instance; ChatMetier.Entities.Chat chat = fakeDb.Get(id); if (chat == null) { //throw new HttpNotFoundResult(); } return(View(chat)); }
public Product Get(int productId) { return(fakeDb.Get(productId)); }