Пример #1
0
 /// <summary>
 /// 添加一条数据
 /// </summary>
 /// <param name="model">数据实体</param>
 /// <returns></returns>
 public int Add(Models.APP.Comments model)
 {
     return(dal.Add(model));
 }
Пример #2
0
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        public int Add(Comments t)
        {
            var result = iComments.Add(t);

            return(result);
        }