public static Patrimonio SelectSingle(int ID) { //IPatrimonio service = Resolver.GetImplementationOf<IPatrimonio>(); IPatrimonio service = LocalServiceActivator.CreateInstance <IPatrimonio>(); return(service.SelectSingle(ID)); }
public static IList <Patrimonio> SelectByMarca(int MarcaID) { //IPatrimonio service = Resolver.GetImplementationOf<IPatrimonio>(); IPatrimonio service = LocalServiceActivator.CreateInstance <IPatrimonio>(); return(service.SelectByMarca(MarcaID)); }
public static IList <Marca> Select() { //IMarca service = Resolver.GetImplementationOf<IMarca>(); IMarca service = LocalServiceActivator.CreateInstance <IMarca>(); return(service.Select()); }
public static Marca SelectSingle(int MarcaID) { //IMarca service = Resolver.GetImplementationOf<IMarca>(); IMarca service = LocalServiceActivator.CreateInstance <IMarca>(); return(service.SelectSingle(MarcaID)); }
public static bool Exists(Marca entity) { //IMarca service = Resolver.GetImplementationOf<IMarca>(); IMarca service = LocalServiceActivator.CreateInstance <IMarca>(); return(service.Exists(entity)); }
public static Tombo Create() { //ITombo service = Resolver.GetImplementationOf<ITombo>(); ITombo service = LocalServiceActivator.CreateInstance <ITombo>(); return(service.Create()); }
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); }
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); }
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); }