public async Task <BaseResult> Create(LectureFileModel model)
        {
            var lectureFile = model.ToLectureFile();

            lectureFile.UpdateCommon();

            return(await Create(lectureFile));
        }
Exemple #2
0
        public async Task <IActionResult> Create([FromBody] LectureFileModel model)
        {
            var result = await LectureFileService.Create(model);

            return(Ok(result));
        }
Exemple #3
0
 public static LectureFile ToLectureFile(this LectureFileModel model)
 {
     return(model.MapTo <LectureFileModel, LectureFile>());
 }