public override void ExpandView(SioCmsContext _context = null, IDbContextTransaction _transaction = null) { var getModule = ReadMvcViewModel.Repository.GetSingleModel(p => p.Id == ModuleId && p.Specificulture == Specificulture , _context: _context, _transaction: _transaction ); if (getModule.IsSucceed) { Module = getModule.Data; } }
public async Task <ActionResult <ReadMvcViewModel> > Save(string culture, [FromBody] ReadMvcViewModel data) { var portalResult = await base.SaveAsync <ReadMvcViewModel>(data, true); if (portalResult.IsSucceed) { return(Ok(portalResult)); } else { return(BadRequest(portalResult)); } }