public IActionResult ApplyLayerPartPatches( [FromRoute] string database, [FromRoute] string id, [FromBody] string[] patches) { ICadmusRepository repository = _repositoryProvider.CreateRepository(database); string json = repository.ApplyLayerPartPatches( id, User.Identity.Name, patches); return(CreatedAtRoute("GetPart", new { database, id }, json)); }