public static CMS InsertOrUpdateAsync(long pageId, string pageName, string pageContent) { var @cms = new CMS { PageId = pageId, PageName = pageName, PageContent = pageContent }; return(@cms); }
public async Task InsertOrUpdateCMSContent(InsertOrUpdateCMSInput input) { var @cms = CMS.InsertOrUpdateAsync(input.PageId, input.PageName, input.PageContent); await _cmsManager.InsertOrUpdateAsync(@cms); }
public async Task InsertOrUpdateAsync(CMS @cms) { await _cmsRepository.InsertOrUpdateAndGetIdAsync(@cms); }