Fix build errors with delete repo contract change

This commit is contained in:
kspearrin 2016-07-01 19:06:07 -04:00
parent 7d62a89a51
commit 6d6f4b350b
4 changed files with 6 additions and 6 deletions

View File

@ -10,6 +10,6 @@ namespace Bit.App.Abstractions
Task<Folder> GetByIdAsync(string id);
Task<IEnumerable<Folder>> GetAllAsync();
Task<ApiResult<FolderResponse>> SaveAsync(Folder folder);
Task<ApiResult<object>> DeleteAsync(string folderId);
Task<ApiResult> DeleteAsync(string folderId);
}
}

View File

@ -11,6 +11,6 @@ namespace Bit.App.Abstractions
Task<IEnumerable<Site>> GetAllAsync();
Task<IEnumerable<Site>> GetAllAsync(bool favorites);
Task<ApiResult<SiteResponse>> SaveAsync(Site site);
Task<ApiResult<object>> DeleteAsync(string id);
Task<ApiResult> DeleteAsync(string id);
}
}

View File

@ -75,9 +75,9 @@ namespace Bit.App.Services
return response;
}
public async Task<ApiResult<object>> DeleteAsync(string folderId)
public async Task<ApiResult> DeleteAsync(string folderId)
{
ApiResult<object> response = await _folderApiRepository.DeleteAsync(folderId);
var response = await _folderApiRepository.DeleteAsync(folderId);
if(response.Succeeded)
{
await _folderRepository.DeleteAsync(folderId);

View File

@ -82,9 +82,9 @@ namespace Bit.App.Services
return response;
}
public async Task<ApiResult<object>> DeleteAsync(string id)
public async Task<ApiResult> DeleteAsync(string id)
{
ApiResult<object> response = await _siteApiRepository.DeleteAsync(id);
var response = await _siteApiRepository.DeleteAsync(id);
if(response.Succeeded)
{
await _siteRepository.DeleteAsync(id);