public async Task UpdateRecord(WebPortalInfo webPortalInfo) { if (_context != null) { _context.WebPortalInfos.Update(webPortalInfo); await _context.SaveChangesAsync(); } }
public async Task <string> AddRecord(WebPortalInfo webPortalInfo) { if (_context != null) { await _context.WebPortalInfos.AddAsync(webPortalInfo); await _context.SaveChangesAsync(); return(webPortalInfo.AccessToken); } return(null); }