18 lines
458 B
C#
18 lines
458 B
C#
|
using Tesses.CMS.Client;
|
|||
|
|
|||
|
TessesCMSClient client = new TessesCMSClient("http://192.168.0.155:62444/");
|
|||
|
|
|||
|
await foreach(var item in client.Movies.GetMoviesAsync("Blender"))
|
|||
|
{
|
|||
|
Console.WriteLine(item.ProperName);
|
|||
|
}
|
|||
|
|
|||
|
bool success=await client.Users.LoginAsync("johndoe@example.com","Se7enMovie");
|
|||
|
if(success)
|
|||
|
{
|
|||
|
Console.WriteLine("Logged in successfully");
|
|||
|
}
|
|||
|
//await client.Movies.CreateAsync("HolyLoop","Holy Loop");
|
|||
|
|
|||
|
|
|||
|
await client.Users.LogoutAsync();
|