Пример #1
0
        public IDataResult <List <Order> > GetAllByShipCityWhereConstainAsync(string constain)
        {
            var _getAllByShipCityWhereConstainAsync = _orderDal.GetAllByShipCityWhereConstainAsync(constain).Result;

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