public Response Handle(Request request) { var typedRequest = (CreateRepoRequest)request; IReposService reposService = ObjectFactory.GetInstance <IReposService>(); var repoResult = reposService.Create(typedRequest.User, typedRequest.Password, typedRequest.CreateRepo); return(new RepoResponse(repoResult)); }
public Repo CreateRepo(string user, string password, RepoCreate createRepo) { IReposService reposService = ObjectFactory.GetInstance <IReposService>(); return(reposService.Create(user, password, createRepo)); }