//Import attachment file
        private void ImportContractAttachment(List <string> fileList, string resurceType, Guid contractGuid, Guid resourceGuid, bool isDelete)
        {
            var destinationPath = string.Empty;

            foreach (var item in fileList)
            {
                var folder = _documentManagementService.GetFolderByKey("Contract", contractGuid, resurceType);
                var contractResourceFile = _contractResourceFileService.GetFilePathByResourceIdAndKeys(resurceType, contractGuid);
                if (contractResourceFile != null)
                {
                    destinationPath = rootPath + contractResourceFile.FilePath + "/";
                    var fileSize   = new System.IO.FileInfo(item).Length.ToString();
                    var outPutPath = _importFileService.MoveAttachment(item, destinationPath, isDelete);
                    if (!string.IsNullOrWhiteSpace(outPutPath))
                    {
                        var isCSV = Path.GetExtension(item) == ".csv" ? true : false;
                        ContractResourceFile contractFile = new ContractResourceFile();
                        contractFile.ContractResourceFileGuid = Guid.NewGuid();
                        contractFile.ResourceGuid             = contractGuid;
                        contractFile.CreatedBy           = loggedUser;
                        contractFile.CreatedOn           = DateTime.UtcNow;
                        contractFile.Keys                = resurceType;
                        contractFile.IsActive            = true;
                        contractFile.IsCsv               = isCSV;
                        contractFile.IsDeleted           = false;
                        contractFile.UpdatedBy           = loggedUser;
                        contractFile.UpdatedOn           = DateTime.Now;
                        contractFile.ContentResourceGuid = resourceGuid;
                        contractFile.IsFile              = true;
                        contractFile.ResourceType        = "Contract";
                        contractFile.UploadFileName      = Path.GetFileName(item);
                        contractFile.FilePath            = outPutPath.Replace(rootPath, "");
                        contractFile.FileSize            = fileSize;
                        if (folder != null)
                        {
                            contractFile.ParentId = contractResourceFile.ContractResourceFileGuid;
                        }
                        _contractsService.InsertContractFile(contractFile);
                    }
                }
            }
        }