Beispiel #1
0
        public ActionResult Remove(int id)
        {
            ShoppingM shopping = shoppingService.FindById(id);

            if (shopping == null || shopping.Status != "Active" || shoppingService.Delete(id) == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            return(new HttpStatusCodeResult(HttpStatusCode.OK));
        }