Beispiel #1
0
        public string guardar(INV2 iNV2)
        {
            string str = string.Empty;

            try
            {
                plantillasEntities.INV2.AddOrUpdate(iNV2);
                plantillasEntities.SaveChanges();
                str = "ok";
            }
            catch (Exception ex)
            {
                str = ex.Message;
            }

            return(str);
        }
Beispiel #2
0
        public string guardarInv2(INV2 inv2)
        {
            string mensaje   = string.Empty;
            int    respuesta = 0;

            try
            {
                plantillasEntities.INV2.AddOrUpdate(inv2);
                respuesta = plantillasEntities.SaveChanges();
                mensaje   = "ok";
            }
            catch (Exception ex)
            {
                mensaje = ex.Message;
            }

            return(respuesta.ToString());
        }