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; } }
public async Task <IActionResult> Edit([FromBody] CmsVideo parm) { return(Ok(await _videoService.UpdateAsync(parm))); }
public async Task <IActionResult> Add([FromBody] CmsVideo parm) { //处理文件类型 return(Ok(await _videoService.AddAsync(parm))); }