public string Delete(int id) { ResultObject resultt = new ResultObject(); try { var result = services.Delete(id); return(JsonConvert.SerializeObject(result)); } catch (Exception e) { resultt.Message = "EXCEPTION: " + e.Message + "Stack: " + e.StackTrace; return(JsonConvert.SerializeObject(resultt)); } }