protected void InsertOrUpdate(HseInjuredSafetyIncidentView objModel, string id) { if (string.IsNullOrEmpty(id) || id == "0") { int Id = _hseInjuredSafetyIncidentService.InsertViewData(objModel); SendWeChatMessage(Id, "SafetyIncident"); SendEmail(Id, "SafetyIncident"); } else { _hseInjuredSafetyIncidentService.UpdateView(objModel); } }