async Task DeleteCastAsync() { Console.Write("Enter Cast Id = "); int id = Convert.ToInt32(Console.ReadLine()); Cast c = await castService.GetByIdAsync(id); if (await castService.DeleteCastAsync(id) > 0) { Console.WriteLine($"Cast Id: {id} Name: {c.Name} deleted"); } else { Console.WriteLine("Some error occurred"); } }