Пример #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);
    }