Esempio n. 1
0
        public IDataResult <List <Order> > GetAllByShipCityWhereConstain(string constain)
        {
            var _getAllByShipCityWhereConstain = _orderDal.GetAllByShipCityWhereConstain(constain);

            if (_getAllByShipCityWhereConstain == null)
            {
                return(new ErrorDataResult <List <Order> >(OrderMessages.RecordNotFound));
            }
            return(new SuccessDataResult <List <Order> >(_getAllByShipCityWhereConstain, OrderMessages.OrdersListed));
        }