Example #1
0
        public IHttpActionResult QuickSearchWareHouse()
        {
            BLL.Support bll = new BLL.Support();
            Library.DTO.Notification notification;
            int totalRows = 0;
            IEnumerable <DTO.Support.WareHouse> WareHouses = bll.QuickSearchWareHouse(out notification);

            if (notification.Type != Library.DTO.NotificationType.Success)
            {
                return(InternalServerError(new Exception(notification.Message)));
            }
            return(Ok(new Library.DTO.ReturnData <IEnumerable <DTO.Support.WareHouse> >()
            {
                Data = WareHouses, Message = notification, TotalRows = totalRows
            }));
        }