Ejemplo n.º 1
0
        public ActionResult StopAd(int id)
        {
            var remainingBudget = _adsService.StopAdvertisement(id);

            if (remainingBudget > decimal.Zero)
            {
                return(RedirectToAction(nameof(TransferBudget), new { id, remainingBudget }));
            }
            else
            {
                return(Json(new { NoRemainingBudget = true }));
            }
        }