//update public async Task <Patient> UpdatePatientAsync(Patient patient) { _context.Entry(patient).State = EntityState.Modified; await _context.SaveChangesAsync(); return(patient); }