Exemple #1
0
 public PromotionLink Detail(string where, object param = null)
 {
     using (var conn = DbConnection(DbOperation.Read))
     {
         var repo = new PromotionLinkRepo(conn);
         return(repo.Detail(where, param));
     }
 }
Exemple #2
0
        public int Update(string column, int id)
        {
            if (id <= 0 || string.IsNullOrEmpty(column))
            {
                return(0);
            }

            using (var conn = DbConnection(DbOperation.Read))
            {
                var repo = new PromotionLinkRepo(conn);
                return(repo.Update(column, id));
            }
        }
Exemple #3
0
        public PromotionLink Detail(int id = 0)
        {
            if (id <= 0)
            {
                return(null);
            }

            using (var conn = DbConnection(DbOperation.Read))
            {
                var repo = new PromotionLinkRepo(conn);
                return(repo.Detail(id));
            }
        }