MyResponse response = await Serializer.Deserialize(json);
if(response.message == "Invalid Credentials")
{
// A:
throw new MyAuthException("Invalid credentials");
// B:
return new MyResponse(success: false, errror: MyErrors.InvalidCredentials);
}
MyResponse response = await Serializer.Deserialize(json);
if(response.message == "Invalid Credentials")
{
// A:
throw new MyAuthException("Invalid credentials");
// B:
return new MyResponse(success: false, errror: MyErrors.InvalidCredentials);
}