示例#1
0
        // GET: Chat/Delete/5
        public ActionResult Delete(int id)
        {
            FakeDb fakeDb = FakeDb.Instance;

            ChatMetier.Entities.Chat chat = fakeDb.Get(id);
            return(View(chat));
        }
示例#2
0
        // 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));
 }