Fix various misspellings of the word Repository in AzureBlast.Web

This commit is contained in:
Andrew Lane 2018-10-04 00:38:57 -04:00
Родитель 06353c721c
Коммит d54d834586
5 изменённых файлов: 23 добавлений и 23 удалений

Просмотреть файл

@ -310,7 +310,7 @@
<Compile Include="Models\NewSearchModel.cs" />
<Compile Include="Models\PoolDetailsModel.cs" />
<Compile Include="Models\PoolSpec.cs" />
<Compile Include="Models\RespositoryViewModel.cs" />
<Compile Include="Models\RepositoryViewModel.cs" />
<Compile Include="Models\VisualizeResultsModel.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Startup.cs" />

Просмотреть файл

@ -32,32 +32,32 @@ namespace Microsoft.Azure.Blast.Web.Controllers.Api
[Route("{repositoryId}/databases"), HttpGet]
public IEnumerable<ExternalDatabase> Get(string repositoryId)
{
var databaseRespository = _externalRepositoryManager.GetRepository(repositoryId);
var databaseRepository = _externalRepositoryManager.GetRepository(repositoryId);
if (databaseRespository == null)
if (databaseRepository == null)
{
return Enumerable.Empty<ExternalDatabase>();
}
return databaseRespository.DatabaseSource.ListDatabases().ToList();
return databaseRepository.DatabaseSource.ListDatabases().ToList();
}
[Route("{repositoryId}/databases/{databaseId}/import"), HttpPost]
public void Post(string repositoryId, string databaseId)
{
var databaseRespository = _externalRepositoryManager.GetRepository(repositoryId);
if (databaseRespository == null)
var databaseRepository = _externalRepositoryManager.GetRepository(repositoryId);
if (databaseRepository == null)
{
throw new Exception("No such repository");
}
var database = databaseRespository.DatabaseSource.GetDatabase(databaseId);
var database = databaseRepository.DatabaseSource.GetDatabase(databaseId);
if (database == null)
{
throw new Exception("No such database");
}
_databaseImportManager.SubmitImport(databaseRespository, database);
_databaseImportManager.SubmitImport(databaseRepository, database);
}
}
}

Просмотреть файл

@ -21,7 +21,7 @@ namespace Microsoft.Azure.Blast.Web.Controllers
public ActionResult Index(string id)
{
var repos = _externalRepositoryManager.ListRepositories().ToList();
var repoModel = new RespositoryViewModel
var repoModel = new RepositoryViewModel
{
SelectedRepoId = string.IsNullOrEmpty(id) ? "ncbi" : id,
Repositories = repos,

Просмотреть файл

@ -1,14 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.Azure.Batch.Blast.Databases.ExternalSources;
namespace Microsoft.Azure.Blast.Web.Models
{
public class RespositoryViewModel
{
public string SelectedRepoId { get; set; }
public List<ExternalRepository> Repositories { get; set; }
}
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Collections.Generic;
using Microsoft.Azure.Batch.Blast.Databases.ExternalSources;
namespace Microsoft.Azure.Blast.Web.Models
{
public class RepositoryViewModel
{
public string SelectedRepoId { get; set; }
public List<ExternalRepository> Repositories { get; set; }
}
}

Просмотреть файл

@ -1,5 +1,5 @@

@model Microsoft.Azure.Blast.Web.Models.RespositoryViewModel
@model Microsoft.Azure.Blast.Web.Models.RepositoryViewModel
@{
ViewBag.Title = "Databases";