public ResultInfo.Result Delete(long valueID, string createdBy) { ResultInfo.Result result = ResultInfo.GenerateErrorResult(); try { db.ThingPropertyValueDelete(valueID); result = ResultInfo.GenerateOKResult("Deleted"); } catch (Exception ex) { result = ResultInfo.GenerateErrorResult(ex.Message); } return(result); }