Esempio n. 1
0
 // GET: C_Player/Delete/5
 public ActionResult Delete(string id)
 {
     ST.Restart();
     try
     {
         var player = new PlayerModel();
         foreach (var item in Storage.Instance.C_playerList)
         {
             if (item.Name + item.LastName + item.Club == id)
             {
                 player = item;
             }
         }
         PlayerModel.C_Delete(player);
         //AGREGAR DELETE
         PlayerModel.Log(Convert.ToString(ST.ElapsedTicks), "Eliminación de jugador de lista artesanal.");
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(RedirectToAction("Index"));
     }
 }