public bool Delete(AuctionMedia m) { using (var db = DBConnection.GetConnection()) { return(AuctionMedia.Delete <AuctionMedia>(db, m)); } }
public IEnumerable <AuctionMedia> GetByParentId(int id) { using (var db = DBConnection.GetConnection()) { return(AuctionMedia.GetByAuctionId(db, id)); } }
public AuctionMedia Get(int id) { using (var db = DBConnection.GetConnection()) { return(AuctionMedia.GetById <AuctionMedia>(db, id)); } }
public bool Post(AuctionMedia i) { using (var db = DBConnection.GetConnection()) { return(AuctionMedia.Persist <AuctionMedia>(db, i)); } }
public IEnumerable <AuctionMedia> Get() { using (var db = DBConnection.GetConnection()) { return(AuctionMedia.GetAll <AuctionMedia>(db)); } }