Beispiel #1
0
        public IActionResult DeleteComponent(Component model)
        {
            BackEnd.Models.Component component = new BackEnd.Models.Component();
            component.ComponentId = model.ComponentId;
            ComponentHandler handler = new ComponentHandler(new bachelordbContext());

            handler.DeleteComponent(component);
            return(RedirectToAction("Index", "HomePage"));
        }