Beispiel #1
0
        public bool GetAny(TBL_CITY e)
        {
            var q = _dal.GetAny(k => k.STATUS &&
                                (string.IsNullOrEmpty(e.NAME) || k.NAME == e.NAME)
                                );

            return(q);
        }
Beispiel #2
0
        public List <TBL_CITY> Search(TBL_CITY e)
        {
            var q = _dal.Get(k => k.STATUS &&
                             (e.ID == 0 || k.ID == e.ID) &&
                             (string.IsNullOrEmpty(e.NAME) || k.NAME.Contains(e.NAME))

                             );

            return(q);
        }
Beispiel #3
0
 public void Update(TBL_CITY entity)
 {
     _dal.Update(entity);
 }
Beispiel #4
0
 public TBL_CITY Add(TBL_CITY entity)
 {
     _dal.Add(entity);
     return(entity);
 }