예제 #1
0
        public IActionResult SetItemFlags(
            [FromRoute] string database,
            [FromBody] ItemFlagsBindingModel model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            ICadmusRepository repository =
                _repositoryProvider.CreateRepository(database);

            repository.SetItemFlags(model.Ids, model.Flags);
            return(Ok());
        }