Example #1
0
        public ActionResult Delete(int id)
        {
            if (id < 0)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Depo depo = _depoService.GetById(id);

            if (depo == null)
            {
                return(HttpNotFound());
            }

            _depoService.Delete(id);

            var model = _depoService.GetList();

            return(PartialView("DepoPartialViewList", model));
        }