State & City Management

States

IdState NameRemove

Add State


Cities

IdCity NameState NameIs CapitalInfoRemove

Add City


Find City Details


Business requirement — Database Operation 4

Reuse the State form for editing when a user selects a state name.

  1. Make State Name a link in the listing.
  2. Pass the selected State Id to the State form.
  3. Load the existing record when the Id is present.
  4. Update instead of creating and show a spinner while saving.