public RsRoutingCheck GetRsRoutingCheckById(string Id) { using (IRsRoutingCheckBLL RsRoutingCheckBLL = BLLContainer.Resolve <IRsRoutingCheckBLL>()) { RsRoutingCheck model = RsRoutingCheckBLL.GetFirstOrDefault(Id); return(model); } }
public bool AddRsRoutingCheck(RsRoutingCheck mRsRoutingCheck) { if (mRsRoutingCheck == null) { return(false); } using (IRsRoutingCheckBLL RsRoutingCheckBLL = BLLContainer.Resolve <IRsRoutingCheckBLL>()) { return(RsRoutingCheckBLL.Add(mRsRoutingCheck)); } }
public bool DelRsRoutingCheck(string Id) { using (IRsRoutingCheckBLL RsRoutingCheckBLL = BLLContainer.Resolve <IRsRoutingCheckBLL>()) { try { RsRoutingCheck item = RsRoutingCheckBLL.GetFirstOrDefault(Id); return(RsRoutingCheckBLL.Delete(item)); } catch { return(false); } } }
public bool DelRsRoutingChecks(string[] Ids) { using (IRsRoutingCheckBLL RsRoutingCheckBLL = BLLContainer.Resolve <IRsRoutingCheckBLL>()) { try { List <RsRoutingCheck> entitys = new List <RsRoutingCheck>(); foreach (string id in Ids) { RsRoutingCheck item = RsRoutingCheckBLL.GetFirstOrDefault(id); entitys.Add(item); } return(RsRoutingCheckBLL.Delete(entitys)); } catch { return(false); } } }