Exemple #1
0
        public IActionResult Post([FromBody] Document document)
        {
            if (document == null)
            {
                return(BadRequest());
            }

            db.CreateDocument(document);
            db.Save();
            return(Ok());
        }