Skip to content

ProjectResponsiblesController

reference
1 min readUpdated

Kind: Controller

Source: Pams/API/Pams.API/Controllers/Sales/ProjectResponsibleController.cs (line 21)

Part of: Pams

Where it refuses work

  • ProjectResponsiblesController stops the work with an early return when !ModelState.IsValid.
  • ProjectResponsiblesController stops the work with an early return when !PRLogic.SaveBulk(EntityList).

When something fails

  • ProjectResponsiblesController handles failure in 5 places: it turns it into a return value in 4, and discards it silently in 1. A failure discarded silently leaves no trace for whoever debugs this later.

Relationships

  • MODULE_DECLARES → GetByProjectID
  • MODULE_DECLARES → SaveProjectResponsibles
  • IMPORTS → BaseController
  • IMPORTS → Project
  • IMPORTS → Proc_PrjectResponsibleBindingModel
  • IMPORTS → ProjectResponsible
  • IMPORTS → ProjectResponsibleBindingModel
  • IMPORTS → ProjectResposible

Was this page helpful?

Download as PDF