示例#1
0
 public EntityProducto Update(EntityProducto oEntityProducto)
 {
     try
     {
         using (ProductoServices.ProductoServicesClient oProducto = new ProductoServices.ProductoServicesClient())
         {
             return(oProducto.Update(oEntityProducto));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#2
0
 public IList <EntityProductoPaginacion> SelectPagging(ref EntityProductoPaginacion oEntityProductoPaginacion)
 {
     try
     {
         using (ProductoServices.ProductoServicesClient oProductoServices = new ProductoServices.ProductoServicesClient())
         {
             return(oProductoServices.SelectPagging(ref oEntityProductoPaginacion));
         }
     }
     catch (Exception)
     {
         throw new FaultException("Error al seleccionar Producto");
     }
 }
示例#3
0
 public EntityProducto SelectByKey(KeyProducto oKeyProducto)
 {
     try
     {
         using (ProductoServices.ProductoServicesClient oGrupoServices = new ProductoServices.ProductoServicesClient())
         {
             return(oGrupoServices.SelectByKey(oKeyProducto));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
示例#4
0
 public EntityProducto AgregarProducto(EntityProducto oEntityEmploye)
 {
     try
     {
         using (ProductoServices.ProductoServicesClient client = new ProductoServices.ProductoServicesClient())
         {
             return(client.Insert(oEntityEmploye));
         }
     }
     catch (Exception)
     {
         throw new FaultException("Error al insertar Producto");
     }
 }