Example #1
0
        public static Patrimonio SelectSingle(int ID)
        {
            //IPatrimonio service = Resolver.GetImplementationOf<IPatrimonio>();
            IPatrimonio service = LocalServiceActivator.CreateInstance <IPatrimonio>();

            return(service.SelectSingle(ID));
        }
Example #2
0
        public static IList <Patrimonio> SelectByMarca(int MarcaID)
        {
            //IPatrimonio service = Resolver.GetImplementationOf<IPatrimonio>();
            IPatrimonio service = LocalServiceActivator.CreateInstance <IPatrimonio>();

            return(service.SelectByMarca(MarcaID));
        }
Example #3
0
        public static IList <Marca> Select()
        {
            //IMarca service = Resolver.GetImplementationOf<IMarca>();
            IMarca service = LocalServiceActivator.CreateInstance <IMarca>();

            return(service.Select());
        }
Example #4
0
        public static Marca SelectSingle(int MarcaID)
        {
            //IMarca service = Resolver.GetImplementationOf<IMarca>();
            IMarca service = LocalServiceActivator.CreateInstance <IMarca>();

            return(service.SelectSingle(MarcaID));
        }
Example #5
0
        public static bool Exists(Marca entity)
        {
            //IMarca service = Resolver.GetImplementationOf<IMarca>();
            IMarca service = LocalServiceActivator.CreateInstance <IMarca>();

            return(service.Exists(entity));
        }
Example #6
0
        public static Tombo Create()
        {
            //ITombo service = Resolver.GetImplementationOf<ITombo>();
            ITombo service = LocalServiceActivator.CreateInstance <ITombo>();

            return(service.Create());
        }
Example #7
0
        public static void Delete(Patrimonio entity)
        {
            if (entity == null)
            {
                throw new ArgumentNullException("Patrimonio");
            }

            //IPatrimonio service = Resolver.GetImplementationOf<IPatrimonio>();
            IPatrimonio service = LocalServiceActivator.CreateInstance <IPatrimonio>();

            service.Delete(entity);
        }
Example #8
0
        public static void Delete(Marca entity)
        {
            if (entity == null)
            {
                throw new ArgumentNullException();
            }

            //IMarca service = Resolver.GetImplementationOf<IMarca>();
            IMarca service = LocalServiceActivator.CreateInstance <IMarca>();

            service.Delete(entity);
        }
Example #9
0
        public static void Insert(Marca entity)
        {
            if (entity == null)
            {
                throw new ArgumentNullException();
            }
            if (Marca.Exists(entity))
            {
                throw new NomeDaMarcaRepetidaException();
            }

            //IMarca service = Resolver.GetImplementationOf<IMarca>();
            IMarca service = LocalServiceActivator.CreateInstance <IMarca>();

            service.Insert(entity);
        }