Пример #1
0
        public ActionResult Delete(int id)
        {
            var response = _kpiService.Delete(id);

            TempData["IsSuccess"] = response.IsSuccess;
            TempData["Message"]   = response.Message;
            return(RedirectToAction("Index"));
        }
Пример #2
0
        public ActionResult Delete(int id)
        {
            var response = _kpiService.Delete(new DeleteKpiRequest {
                Id             = id,
                ControllerName = "KPI Configuration",
                ActionName     = "Delete",
                UserId         = this.UserProfile().UserId
            });

            TempData["IsSuccess"] = response.IsSuccess;
            TempData["Message"]   = response.Message;
            return(RedirectToAction("Index"));
        }