Ejemplo n.º 1
0
 public static Task <RunbookResource> FindByNameOrIdOrFail(this IRunbookRepository repo, string nameOrId, ProjectResource project)
 {
     return(repo.FindByNameOrIdOrFail(n => repo.FindByName(project, n),
                                      "Runbooks",
                                      "runbook",
                                      nameOrId,
                                      $" in {project.Name}"));
 }
Ejemplo n.º 2
0
 public static Task <RunbookResource> FindByNameOrIdOrFail(this IRunbookRepository repo, string nameOrId, ProjectResource project)
 => repo.FindByNameOrIdOrFail(n => repo.FindByName(project, n), "Runbooks", "runbook", nameOrId, enclosingContextDescription: $" in {project.Name}");