public async Task <RepositoryResponse <List <InfoPortalPageViewModel> > > UpdateInfos([FromBody] List <InfoPortalPageViewModel> models)
 {
     if (models != null)
     {
         return(await InfoPortalPageViewModel.UpdateInfosAsync(models));
     }
     else
     {
         return(new RepositoryResponse <List <InfoPortalPageViewModel> >());
     }
 }
Esempio n. 2
0
        public override void ExpandView(SiocCmsContext _context = null, IDbContextTransaction _transaction = null)
        {
            var getCategory = InfoPortalPageViewModel.Repository.GetSingleModel(p => p.Id == Id
                                                                                , _context: _context, _transaction: _transaction
                                                                                );

            if (getCategory.IsSucceed)
            {
                Page = getCategory.Data;
            }
        }