public object Post(Tool tool) { var newTool = Repository.Store(tool); ClioHubManager.NewTool(User, tool); return newTool; }
public object Put(Tool tool) { var editTool = Repository.Store(tool); ClioHubManager.EditTool(User, tool); return editTool; }
public static void NewTool(User user, Tool tool) { var clients = GlobalHost.ConnectionManager.GetHubContext<ClioHub>().Clients; clients.All.addTool(user, tool); }