コード例 #1
0
        public void AddEstimation(int id, AddEstimateDTO addEstimateDTO)
        {
            Boolean isAdded       = BusinessLogic.AddEstimate(id, Context.ConnectionId, addEstimateDTO.PBIName, addEstimateDTO.Estimate);
            Boolean everyoneVoted = BusinessLogic.checkEveryoneVoted(id, addEstimateDTO.PBIName);

            Clients.Caller.addedEstimation(isAdded);
            if (everyoneVoted)
            {
                Clients.Group(id.ToString()).showEstimates();
            }

            Clients.Group(id.ToString()).getUserEstimates(FindUserEstimates(id, addEstimateDTO.PBIName));

            String logText = "Add estimate '" + addEstimateDTO.Estimate + "' for " + addEstimateDTO.PBIName + " in room " + id + " by " + BusinessLogic.GetUserNameByConnectionId(id, Context.ConnectionId) + "(" + Context.ConnectionId + ")";

            Trace.WriteLine(logText, "AddEstimation");
        }