Exemple #1
0
        public static CMS InsertOrUpdateAsync(long pageId, string pageName, string pageContent)
        {
            var @cms = new CMS
            {
                PageId      = pageId,
                PageName    = pageName,
                PageContent = pageContent
            };

            return(@cms);
        }
Exemple #2
0
 public async Task InsertOrUpdateCMSContent(InsertOrUpdateCMSInput input)
 {
     var @cms = CMS.InsertOrUpdateAsync(input.PageId, input.PageName, input.PageContent);
     await _cmsManager.InsertOrUpdateAsync(@cms);
 }
Exemple #3
0
 public async Task InsertOrUpdateAsync(CMS @cms)
 {
     await _cmsRepository.InsertOrUpdateAndGetIdAsync(@cms);
 }