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); }
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); }