private void DeleteFile(object obj) { if (obj is FileDetailModelDTO fileDetail) { fileDBAccess.RemoveFile(fileDetail.Id); } }