public void AgregarInactivacion( int codigoBanco ,int codigoServicio) { try { Dat_PC_InactivacionServicioEntidad acceso = new Dat_PC_InactivacionServicioEntidad(); acceso.Agregar(codigoBanco, codigoServicio, System.Web.HttpContext.Current.User.Identity.Name, DateTime.Now , 'A', System.Web.HttpContext.Current.Request.UserHostAddress); } catch (Exception e){ throw; } }
public List<cgp_Lee_InactivacionServiciosEntidadResult> consultaInactivacion(int? codigoBanco, String sortExpression) { try { int? banco=null; if (codigoBanco !=0){ banco=codigoBanco ; } Dat_PC_InactivacionServicioEntidad acceso = new Dat_PC_InactivacionServicioEntidad(); List<cgp_Lee_InactivacionServiciosEntidadResult> ds = acceso.consulta(banco , System.Web.HttpContext.Current.Request.UserHostAddress, System.Web.HttpContext.Current.User.Identity.Name).ToList(); return ds; } catch (Exception ex){ string ee = ex.Message; throw; } }