public Response Handle(Request request) { var typedRequest = (GetRepoRequest)request; IReposService reposService = ObjectFactory.GetInstance <IReposService>(); var repoResult = reposService.Get(typedRequest.User, typedRequest.Repo); return(new RepoResponse(repoResult)); }
public Repo GetRepo(string user, string repo) { IReposService reposService = ObjectFactory.GetInstance <IReposService>(); return(reposService.Get(user, repo)); }