internal int UpdateWorkRequest(WorkRequest input, bool isTest) { List <Variance> whatChanged = GetWorkRequests( new WorkRequest { RequestID = input.RequestID }).First().DetailedCompare(input); try { return(dao.UpdateWorkRequest(input, isTest)); } catch (Exception ex) { Error.Log(ex, "Data sent to method was : " + Utility.objectToSql(input)); throw; } }