Exemple #1
0
        public ActionResult DeleteAgent(int id)
        {
            var service = new AgentService();

            service.DeleteAgent(id);

            TempData["Save Result"] = "The agent was removed.";

            return(RedirectToAction("Index"));
        }