Ejemplo n.º 1
0
 public bool save(Cliente entity)
 {
     try
     { context.Set <Cliente>().Add(entity); }
     catch (System.Exception)
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 2
0
 public bool save(Organizador entity)
 {
     try
     {
         context.Set <Organizador>().Add(entity);
     }
     catch (System.Exception)
     {
         return(false);
     }
     return(true);
 }
        public bool save(Evento_Usuario entity)
        {
            try
            {
                context.Set <Evento_Usuario>().Add(entity);
            }
            catch (System.Exception)
            {
                return(false);
            }

            return(true);
        }
Ejemplo n.º 4
0
        public bool save(CodigoEvento entity)
        {
            try
            {
                context.Set <CodigoEvento>().Add(entity);
            }
            catch (System.Exception)
            {
                return(false);
            }

            return(true);
        }
        public bool save(Calle entity)
        {
            try
            {
                context.Set <Calle>().Add(entity);
                context.SaveChanges();
            }
            catch (System.Exception)
            {
                return(false);
            }

            return(true);
        }
        public bool save(NumeroCasa entity)
        {
            try
            {
                context.Set <NumeroCasa>().Add(entity);
                context.SaveChanges();
            }
            catch (System.Exception)
            {
                return(false);
            }

            return(true);
        }