Esempio n. 1
0
        public ActionResult <Doc> DeleteDoc(string name, Category category)
        {
            var doc = _services.DeleteDoc(name, category);

            if (doc == null)
            {
                return(NotFound("This file was not found"));
            }
            return(doc);
        }
Esempio n. 2
0
        public ActionResult <Doc> DeleteDoc(string name, Category category)
        {
            var doc = _services.DeleteDoc(name, category);

            if (doc == null)
            {
                return(NotFound("This file was not found"));
            }
            //_logger.LogInformation(DateTime.Now.ToShortDateString() + "\r\n" +
            //                        DateTime.Now.ToLongTimeString() + ": File was deleted");
            return(doc);
        }