public ActionResult GuardarPlantillaDetallePorRefer(List<PlantillaDetaEntity> lstPlantillaDeta)
        {
            string tipoDevol = null;
            object DataDevol = null;
            object jsonResponse;
            try
            {
                foreach (PlantillaDetaEntity detalle in lstPlantillaDeta)
                {
                    detalle.segMaquinaOrigen = GetIPAddress();
                    detalle.segUsuarioCrea = User.Identity.Name;
                    detalle.segUsuarioEdita = User.Identity.Name;
                }
                objPlantillaLogic = new PlantillaLogic();
                returnValor = objPlantillaLogic.RegistrarPlantillaDetaPorReferencia(lstPlantillaDeta);

                DataDevol = returnValor.Message;
                tipoDevol = returnValor.Exitosa ? "C" : "I";
            }
            catch (Exception ex)
            {
                tipoDevol = "E";
                log.Error(String.Concat("GuardarPlantillaDetallePorRefer", " | ", ex.Message));
                DataDevol = ex.Message;
            }
            finally
            {
                jsonResponse = new
                {
                    Type = tipoDevol,
                    Data = DataDevol
                };
            }
            return Json(jsonResponse);
        }