コード例 #1
0
        public async Task <CheckPoint> UpdateCheckPoint(int id, CheckPoint checkPoint)
        {
            CheckPoint NewCheckpoint = await checkpointRepository.UpdateCheckpointById(id, checkPoint);

            if (NewCheckpoint != null)
            {
                await checkpointRepository.SaveChanges();

                return(NewCheckpoint);
            }


            return(null);
        }