// To protect from overposting attacks, see https://aka.ms/RazorPagesCRUD public async Task <IActionResult> OnPostAsync() { if (!ModelState.IsValid) { return(Page()); } // _context.Employee.Add(Employee); // await _context.SaveChangesAsync(); _rpcClient.Add(Employee); return(RedirectToPage("./Index")); }