/// <summary>
        /// 用户获取优惠券
        /// </summary>
        /// <param name="d"></param>
        /// <returns></returns>
        public int AddDidAndUser(DisCountAndUser d)
        {
            d.StartTime = DateTime.Now;
            d.EndTime   = d.StartTime.AddDays(3);
            string sql = $"insert into DisCountAndUser values({d.UserIdOut},{d.DisCountId},'{d.StartTime}','{d.EndTime}')";

            return(DapperHelper.Cud(sql));
        }
示例#2
0
 public int AddDidAndUser([FromForm] DisCountAndUser d)
 {
     return(BLLDisCount.AddDidAndUser(d));
 }
示例#3
0
 /// <summary>
 /// 用户获取优惠券
 /// </summary>
 /// <param name="d"></param>
 /// <returns></returns>
 public int AddDidAndUser(DisCountAndUser d)
 {
     return(dal.AddDidAndUser(d));
 }