Пример #1
0
        public void AddOrUpdateEmployee(string jsonEmp, string connId)
        {
            var emp = JsonConvert.DeserializeObject <Employee>(jsonEmp);

            emp = FakeClass.AddOrUpdateEmployee(emp);
            Clients.Client(connId).addOrUpdateEmployee(emp);
            Clients.All.updateAllEmployees(FakeClass.GetAllEmployees());
        }