Beispiel #1
0
        public async Task <IActionResult> Remove(int id)
        {
            var result = await _projectFactory.DeleteObject($"api/project/{id}");

            if (!result)
            {
                ViewData["Message"] = "Something wrong";
                return(RedirectToAction("Index"));
            }

            ViewData["MessageSuccess"] = "Customer deleted";
            return(RedirectToAction("Index"));
        }