Ejemplo n.º 1
0
        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");
            }
        }
Ejemplo n.º 2
0
        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");
            }
        }