Ejemplo n.º 1
0
        public IActionResult DeleteCarOwner(int?ownerId, int?carId)
        {
            if (ownerId == null)
            {
                return(NotFound());
            }

            ownerService.DeleteCarOwner(ownerId.GetValueOrDefault(), carId.GetValueOrDefault());

            return(RedirectToAction("Index"));
        }