public IHttpActionResult AddDocumentType([FromBody] DocumentType docType) { if (docType == null) { return(BadRequest("Object is null")); } _documentService.AddType(docType); return(Ok()); }