예제 #1
0
        //UPDATE
        public IEnumerable <Log> UpdateLogAndRefreshTourLogList(Log oldLog, string report = "", int distance = 0, string duration = "",
                                                                int rating     = 0, int steps       = 0, float weightkg = 0, string bloodpreassure = "",
                                                                string feeling = "", string weather = "")
        {
            try {
                logDAO.UpdateLog(oldLog, report, distance, duration, rating, steps, weightkg, bloodpreassure, feeling, weather);
            }
            catch (Exception e)
            {
                Debug.WriteLine(e.Message);
            }

            return(logDAO.GetLogsOfTour(oldLog.Tour));
        }