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); }
public static int EliminarSponsor(int idSponsor) { try { SponsorsBLL.Delete(idSponsor); return(idSponsor); } catch (Exception) { return(-1); } }
public static Sponsor TraerSponsor(int idSponsor) { Sponsor objSponsor = SponsorsBLL.SelectById(idSponsor); return(objSponsor); }
public static Sponsor InsertarSponsor(string nombre, string modulo) { Sponsor objSponsor = SponsorsBLL.InsertWithReturn(nombre, modulo, "S/I", 0); return(objSponsor); }