How do I extract the exception from the error into the propery status? This doesn't work:
public class MyClass{ public string status { get; set; } public string MyAction() { try { ... status = "OK"; return status; } catch (Exception ex) { //throw ex; status = ex; } } }