public async Task <IActionResult> Post([FromBody] DocumentsTypeDTO documentypeDto)
        {
            var docType = _mapper.Map <DocumentsType>(documentypeDto);
            await _DocumentsTypesServices.Add(docType);

            documentypeDto = _mapper.Map <DocumentsTypeDTO>(docType);

            var response = new GenericResponse <DocumentsTypeDTO>(documentypeDto);

            return(Ok(response));
        }
        public async Task <IActionResult> Put(int id, DocumentsTypeDTO documentypeDto)
        {
            try
            {
                var docType = _mapper.Map <DocumentsType>(documentypeDto);
                docType.DocumentTypeId = id;

                await _DocumentsTypesServices.Update(docType);

                var response = new GenericResponse <bool>(true);
                return(Ok(response));
            }
            catch (Exception ex)
            {
                throw new BusinessException(MessageCodes.PROPERTY_NO_VALID, GetErrorDescription(MessageCodes.PROPERTY_NO_VALID), ex.Message);
            }
        }