From 14ee85eea2c235c6479207a2754d7bd0e1ffee08 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 7 Mar 2019 09:34:20 -0500 Subject: [PATCH] collection update model --- src/Api/Public/Controllers/CollectionsController.cs | 2 +- ...UpdateRequestModel.cs => CollectionUpdateRequestModel.cs} | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) rename src/Core/Models/Api/Public/Request/{CollectionCreateUpdateRequestModel.cs => CollectionUpdateRequestModel.cs} (80%) diff --git a/src/Api/Public/Controllers/CollectionsController.cs b/src/Api/Public/Controllers/CollectionsController.cs index da646f01d2..c5279bd6c6 100644 --- a/src/Api/Public/Controllers/CollectionsController.cs +++ b/src/Api/Public/Controllers/CollectionsController.cs @@ -84,7 +84,7 @@ namespace Bit.Api.Public.Controllers [ProducesResponseType(typeof(CollectionResponseModel), (int)HttpStatusCode.OK)] [ProducesResponseType(typeof(ErrorResponseModel), (int)HttpStatusCode.BadRequest)] [ProducesResponseType((int)HttpStatusCode.NotFound)] - public async Task Put(Guid id, [FromBody]CollectionCreateUpdateRequestModel model) + public async Task Put(Guid id, [FromBody]CollectionUpdateRequestModel model) { var existingCollection = await _collectionRepository.GetByIdAsync(id); if(existingCollection == null || existingCollection.OrganizationId != _currentContext.OrganizationId) diff --git a/src/Core/Models/Api/Public/Request/CollectionCreateUpdateRequestModel.cs b/src/Core/Models/Api/Public/Request/CollectionUpdateRequestModel.cs similarity index 80% rename from src/Core/Models/Api/Public/Request/CollectionCreateUpdateRequestModel.cs rename to src/Core/Models/Api/Public/Request/CollectionUpdateRequestModel.cs index 3d877108bf..5836d938ee 100644 --- a/src/Core/Models/Api/Public/Request/CollectionCreateUpdateRequestModel.cs +++ b/src/Core/Models/Api/Public/Request/CollectionUpdateRequestModel.cs @@ -1,10 +1,9 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using Bit.Core.Models.Table; namespace Bit.Core.Models.Api.Public { - public class CollectionCreateUpdateRequestModel : GroupBaseModel + public class CollectionUpdateRequestModel { /// /// The associated groups that this collection is assigned to.