public ActionResult EliminarPlantillaDetalle(int pID)
 {
     string tipoDevol = null;
     object DataDevol = null;
     object jsonResponse;
     try
     {
         objPlantillaLogic = new PlantillaLogic();
         Parametro objParametro = new Parametro
         {
             codPlantillaDeta = pID,
             segUsuElimina = User.Identity.Name,
             segMaquinaPC = GetIPAddress()
         };
         /*Borra el registro de la tabla*/
         returnValor = objPlantillaLogic.EliminarPlantillaDeta(objParametro);
         DataDevol = returnValor.Message;
         tipoDevol = returnValor.Exitosa ? "C" : "I";
     }
     catch (Exception ex)
     {
         tipoDevol = "E";
         log.Error(String.Concat("EliminarPlantillaDetalle", " | ", ex.Message));
         DataDevol = ex.Message;
     }
     finally
     {
         jsonResponse = new
         {
             Type = tipoDevol,
             Data = DataDevol,
         };
     }
     return Json(jsonResponse, JsonRequestBehavior.AllowGet);
 }