public ValidatorResult ValidateCreate(Dashboard entity) { var context = new ValidationContext <Dashboard>(entity); return(context .CommonValidation() .ValidateIdNotAllowed() .Result); }
public ValidatorResult ValidateUpdate(Dashboard entity) { var context = new ValidationContext <Dashboard>(entity); return(context .CommonValidation() .ValidateIdProvided() .Result); }