public IActionResult UpdateBasic(UpdateBasicAlbumViewModel model) { if (int.TryParse(model.SingerId, out int singerId)) { var album = new AlbumModel() { Id = model.Id, Name = model.Name.Trim(), SingerId = singerId, MenderId = HttpContext.Session.GetCurrentUserId() }; album = _albumAppService.UpdateBasic(album); return(Json(new JsonResultEntity() { Message = "更新基本信息成功!", JsonObject = Json(new AlbumViewModel() { Id = album.Id, SingerId = album.SingerId, MenderId = album.MenderId, Name = album.Name, SingerName = album.SingerName, MenderName = album.MenderName, LastModificationTime = album.LastModificationTime?.ToStandardDateOfChina() }) })); } throw new JMBasicException("歌唱家不存在"); }