public async Task <bool> UpdateDs(UpdateDsDTO dto, int userId) { var course = await this._loader.LoaderAsync(dto.CourseId); Prosecutor.NotNull(course, "课程信息不存在"); bool result = course.UpdateDs(dto, userId); if (result is false) { return(false); } await this._loader.Save(course); return(true); }
public Task <ReturnVal <bool> > UpdateDsItem(UpdateDsDTO dto) { var rev = this._courseSvc.UpdateDs(dto, this._user.UserId); return(RetOkAsync(rev)); }