コード例 #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");
            }
        }
コード例 #2
0
ファイル: ManageCast.cs プロジェクト: csdankim/MovieSystem
        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");
            }
        }