예제 #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));
     }
 }
예제 #2
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));
            }
        }