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)); }
public ActionResult Index() { List <WareHouse> wareHouses = serviceWareHouseService.GetAll(); return(View(wareHouses)); }
public ActionResult OpeningInventory() { List <WareHouse> wareHouses = serviceWareHouseService.GetAll(); return(View(wareHouses)); }