public Risk CreateRisk( Project project )
Create a project risk.
Creates an object without saving to database
Syntax
public Risk CreateRisk( Project project )
Parameters
- project
- Type: Project
Project, for which the risk is created. Object. Access path: PublicAPI.Projects.Project
Return Value
Type: RiskRisk
Examples
//load the project by ID var project = PublicAPI.Projects.Project.Load(3); //create a risk var risk = PublicAPI.Projects.Risk.CreateRisk(project); //risk - created risk for the project
See Also