Skip to content

PersonAddressController

reference
1 min readUpdated

Kind: Controller

Source: Pams/API/Pams.API/Controllers/Person/PersonAddressController.cs (line 21)

Part of: Pams

Where it refuses work

  • PersonAddressController stops the work with an early return when !ModelState.IsValid, in 2 places.
  • PersonAddressController stops the work with an early return when !EnAdd.Save(), in 2 places.
  • PersonAddressController stops the work with an early return when !EnPA.Save().

When something fails

  • PersonAddressController handles failure in 8 places: it turns it into a return value in all 8.

Relationships

  • MODULE_DECLARES → GetByPersonID
  • MODULE_DECLARES → insert
  • MODULE_DECLARES → update
  • MODULE_DECLARES → delete
  • IMPORTS → Person
  • IMPORTS → PersonAddress
  • IMPORTS → BaseController
  • IMPORTS → Employee
  • IMPORTS → GetByPersonID
  • IMPORTS → GetByPersonID
  • IMPORTS → Address
  • IMPORTS → City
  • IMPORTS → Save

Was this page helpful?

Download as PDF