Example #1
0
 public void OnGet(int id = 0, int column = 0)
 {
     Video = _videoService.GetModelAsync(m => m.Id == id).Result.data;
     if (Video.Id == 0 && column != 0)
     {
         Video.ParentId = column;
     }
 }
Example #2
0
 public async Task <IActionResult> Edit([FromBody] CmsVideo parm)
 {
     return(Ok(await _videoService.UpdateAsync(parm)));
 }
Example #3
0
 public async Task <IActionResult> Add([FromBody] CmsVideo parm)
 {
     //处理文件类型
     return(Ok(await _videoService.AddAsync(parm)));
 }