Exemplo n.º 1
0
        public ActionResult GetAll()
        {
            List <WareHouse> oWareHouse = db.GetAll();

            if (oWareHouse == null)
            {
                return(HttpNotFound());
            }
            var result = AutoMapper.Mapper.Map <List <WareHouse>, List <WareHouseResponse> >(oWareHouse);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            List <WareHouse> wareHouses = serviceWareHouseService.GetAll();

            return(View(wareHouses));
        }
Exemplo n.º 3
0
        public ActionResult OpeningInventory()
        {
            List <WareHouse> wareHouses = serviceWareHouseService.GetAll();

            return(View(wareHouses));
        }