Exemplo n.º 1
0
 public int UpDataCourseRecommend(CourseRecommend cr)
 {
     crBll.Delete(cr.SoftVersion);
     cr.RoomId   = cr.RoomId == null ? "" : cr.RoomId;
     cr.Editor   = UserCookies.AdminName;
     cr.EditTime = DateTime.Now;
     CreateJsonPageStatus(cr.SoftVersion);
     return(crBll.Add(cr));
 }
 /// <summary>
 /// 删除单条数据
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public int Delete(CourseRecommend obj)
 {
     return(dal.Delete(obj));
 }
 /// <summary>
 /// 更新单条数据
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public int Update(CourseRecommend obj)
 {
     return(dal.Update(obj));
 }
 /// <summary>
 /// 添加单条数据
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public int Add(CourseRecommend obj)
 {
     return(dal.Add(obj));
 }