void DeleteCast() { Console.Write("Enter Id = "); int id = Convert.ToInt32(Console.ReadLine()); Cast c = castService.GetById(id); if (castService.DeleteCast(c.Id) > 0) { Console.WriteLine($"Cast {c.Name} deleted successfully"); } else { Console.WriteLine("Some error has occurred"); } }
void DeleteCast() { Console.Write("Enter Cast Id = "); int id = Convert.ToInt32(Console.ReadLine()); Cast c = castService.GetById(id); if (castService.DeleteCast(id) > 0) { Console.WriteLine($"Cast Id: {id} Name: {c.Name} deleted"); } else { Console.WriteLine("Some error occurred"); } }