예제 #1
0
        public override void Handle(TryToAddNewPatientRequest request)
        {
            if (!IsRequestValid(request.SessionId, request.UserId))
            {
                return;
            }


            var addingSuccessful = dataCenter.AddPatient(request.NewPatient);

            Socket.SendNetworkMsg(new TryToAddNewPatientResponse(addingSuccessful));
        }