public object Post(Technology technology) { var newTechnology = Repository.Store(technology); ClioHubManager.NewTechnology(User, newTechnology); return newTechnology; }
public object Put(Technology technology) { var editTechnology = Repository.Store(technology); ClioHubManager.EditTechnology(User, editTechnology); return editTechnology; }
public static void NewTechnology(User user, Technology technology) { var clients = GlobalHost.ConnectionManager.GetHubContext<ClioHub>().Clients; clients.All.addTechnology(user, technology); }