Exemple #1
0
        //
        // POST: /UserWarehouse/Delete/5


        public ActionResult Delete(int id)
        {
            UserHub userwarehouse = _userHubService.FindBy(u => u.UserHubID == id).Single();

            _userHubService.DeleteUserHub(userwarehouse);

            return(RedirectToAction("Index"));
        }
        //
        // GET: /UserWarehouse/Details/5

        public ViewResult Details(int id)
        {
            UserHub userwarehouse = _userHubService.FindBy(u => u.UserHubID == id).Single();

            return(View(userwarehouse));
        }