public ActionResult GetHelpTelInfoById(string id) { try { var result = _iWctHelpTelMstrRepository.Get(id); return(Success("获取成功", result)); } catch (Exception ex) { return(Fail("获取失败:" + ex.Message)); } }
/// <summary> /// 删除救援信息 /// </summary> /// <param name="ids"></param> /// <returns></returns> public bool DelHelpTelInfo(string ids) { try { if (!string.IsNullOrEmpty(ids)) { var arr = ids.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); foreach (var item in arr) { var entity = _wctHelpTelMstrRepository.Get(item); _wctHelpTelMstrRepository.Delete(entity); } return(true); } return(false); } catch (Exception ex) { throw ex; } }