MagicFile by Luigi Senzamici

<PackageReference Include="MagicFile" Version="2.0.1" />

 Response

public class Response : IResponse
public Response()

default constructor set property succes = false fail = true; message = "error"; error = "error";

public Response(bool success)

constructor set success

public Response(bool success, string message)

constructor set success and message

public Response(bool success, string message, object data)

constructor set success, message and data

public object data()

read data property to use cast it to DataTable type

public void data(object data)

set data property

public object dataTo<tipo>()

public string error()

read error property

public void error(string error)

set error property

public bool fail()

read failure property

public void fail(bool fail)

set failure property

public string message()

read message property

public void message(string message)

set message property

public void set(bool success)

set success property

public void set(bool success, string message)

set success property and message

public void set(bool success, string message, object data)

set property success, message and data

public bool success()

read success property

public void success(bool success)

set success property