/// <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); }
/// <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); }
public dynamic AddContent(W_Course_Interlocution model) { return(Success(mapper.AddContent(model, this.AccountID))); }
public dynamic AddCourseInterlocution(W_Course_Interlocution model) { return(Success(mapper.AddCourseInterlocution(model, this.SafeGetStuId))); }