示例#1
0
        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));
        }