Exemplo n.º 1
0
 /// <summary>
 /// 添加回复
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public dynamic AddContent(W_Course_Interlocution model, int AccountID)
 {
     model.AddTime    = DateTime.Now;
     model.Account_ID = AccountID;
     if (Orm.Insert <W_Course_Interlocution>(model) <= 0)
     {
         throw new ApiException("添加失败,请重试");
     }
     return(true);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 添加问答
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public dynamic AddCourseInterlocution(W_Course_Interlocution model, string StuId)
 {
     model.AddTime    = DateTime.Now;
     model.Student_ID = StuId;
     if (Orm.Insert <W_Course_Interlocution>(model) <= 0)
     {
         throw new ApiException("添加失败,请重试");
     }
     return(true);
 }
Exemplo n.º 3
0
 public dynamic AddContent(W_Course_Interlocution model)
 {
     return(Success(mapper.AddContent(model, this.AccountID)));
 }
Exemplo n.º 4
0
 public dynamic AddCourseInterlocution(W_Course_Interlocution model)
 {
     return(Success(mapper.AddCourseInterlocution(model, this.SafeGetStuId)));
 }