public async Task <BaseResult> Create(LectureFileModel model) { var lectureFile = model.ToLectureFile(); lectureFile.UpdateCommon(); return(await Create(lectureFile)); }
public async Task <IActionResult> Create([FromBody] LectureFileModel model) { var result = await LectureFileService.Create(model); return(Ok(result)); }
public static LectureFile ToLectureFile(this LectureFileModel model) { return(model.MapTo <LectureFileModel, LectureFile>()); }