public bool UpdateAndDelMongoDb(T_BG_DisplayPartition displayGuideFile, string mongDbName) { try { MongoDBHelper.DelFileByName(mongDbName, displayGuideFile.FileName); return(_bgDisplayPartitionRepository.Update(displayGuideFile)); } catch (Exception) { return(false); } }