示例#1
0
    public static Sponsor ActualizarSponsor(string nombre, string modulo, string id)
    {
        SponsorsBLL.Update(nombre, modulo, Convert.ToInt32(id));
        Sponsor obSponsor = SponsorsBLL.SelectById(Convert.ToInt32(id));

        return(obSponsor);
    }
示例#2
0
 public static int EliminarSponsor(int idSponsor)
 {
     try
     {
         SponsorsBLL.Delete(idSponsor);
         return(idSponsor);
     }
     catch (Exception)
     {
         return(-1);
     }
 }
示例#3
0
    public static Sponsor TraerSponsor(int idSponsor)
    {
        Sponsor objSponsor = SponsorsBLL.SelectById(idSponsor);

        return(objSponsor);
    }
示例#4
0
    public static Sponsor InsertarSponsor(string nombre, string modulo)
    {
        Sponsor objSponsor = SponsorsBLL.InsertWithReturn(nombre, modulo, "S/I", 0);

        return(objSponsor);
    }