Exemple #1
0
        public ActionResult DeleteSave(int id)
        {
            Data dt = new Data();

            dt.Id = id;
            db.Delete(dt);
            return(RedirectToAction("index"));
        }
Exemple #2
0
 public ActionResult DeleteSave(FormCollection collection)
 {
     try
     {
         long id = Convert.ToInt64(collection["Id"]);
         phones.Delete(id);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Exemple #3
0
        public ActionResult DeleteSave(string record_id)
        {
            try
            {
                // TODO: Add delete logic here
                recordRepository.Delete(int.Parse(record_id));

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }
Exemple #4
0
 public void Delete(int id)
 {
     phoneDictionary.Delete(id);
 }
Exemple #5
0
 public ActionResult DeleteSave(Phone phone)
 {
     phoneDictionary.Delete(phone.Id);
     return(RedirectToAction("Index"));
 }