public async Task <PartialViewResult> CreateOrEditModal(long?id)
        {
            GetAttachmentFileForEditOutput getAttachmentFileForEditOutput;

            if (id.HasValue)
            {
                getAttachmentFileForEditOutput = await _attachmentFilesAppService.GetAttachmentFileForEdit(new EntityDto <long> {
                    Id = (long)id
                });
            }
            else
            {
                getAttachmentFileForEditOutput = new GetAttachmentFileForEditOutput {
                    AttachmentFile = new CreateOrEditAttachmentFileDto()
                };
            }

            var viewModel = new CreateOrEditAttachmentFileModalViewModel()
            {
                AttachmentFile                   = getAttachmentFileForEditOutput.AttachmentFile,
                AttachmentTypeArName             = getAttachmentFileForEditOutput.AttachmentTypeArName,
                AttachmentFileAttachmentTypeList = await _attachmentFilesAppService.GetAllAttachmentTypeForTableDropdown(),
            };

            return(PartialView("_CreateOrEditModal", viewModel));
        }